|
|
|
@ -10,6 +10,7 @@ import LocalSettingsNavigationItem from './item';
|
|
|
|
|
|
|
|
|
|
const messages = defineMessages({
|
|
|
|
|
general: { id: 'settings.general', defaultMessage: 'General' },
|
|
|
|
|
content_warnings: { id: 'settings.content_warnings', defaultMessage: 'Content Warnings' },
|
|
|
|
|
collapsed: { id: 'settings.collapsed_statuses', defaultMessage: 'Collapsed toots' },
|
|
|
|
|
media: { id: 'settings.media', defaultMessage: 'Media' },
|
|
|
|
|
preferences: { id: 'settings.preferences', defaultMessage: 'Preferences' },
|
|
|
|
@ -42,25 +43,31 @@ export default class LocalSettingsNavigation extends React.PureComponent {
|
|
|
|
|
active={index === 1}
|
|
|
|
|
index={1}
|
|
|
|
|
onNavigate={onNavigate}
|
|
|
|
|
title={intl.formatMessage(messages.collapsed)}
|
|
|
|
|
title={intl.formatMessage(messages.content_warnings)}
|
|
|
|
|
/>
|
|
|
|
|
<LocalSettingsNavigationItem
|
|
|
|
|
active={index === 2}
|
|
|
|
|
index={2}
|
|
|
|
|
onNavigate={onNavigate}
|
|
|
|
|
title={intl.formatMessage(messages.media)}
|
|
|
|
|
title={intl.formatMessage(messages.collapsed)}
|
|
|
|
|
/>
|
|
|
|
|
<LocalSettingsNavigationItem
|
|
|
|
|
active={index === 3}
|
|
|
|
|
href='/settings/preferences'
|
|
|
|
|
index={3}
|
|
|
|
|
onNavigate={onNavigate}
|
|
|
|
|
title={intl.formatMessage(messages.media)}
|
|
|
|
|
/>
|
|
|
|
|
<LocalSettingsNavigationItem
|
|
|
|
|
active={index === 4}
|
|
|
|
|
href='/settings/preferences'
|
|
|
|
|
index={4}
|
|
|
|
|
icon='cog'
|
|
|
|
|
title={intl.formatMessage(messages.preferences)}
|
|
|
|
|
/>
|
|
|
|
|
<LocalSettingsNavigationItem
|
|
|
|
|
active={index === 4}
|
|
|
|
|
active={index === 5}
|
|
|
|
|
className='close'
|
|
|
|
|
index={4}
|
|
|
|
|
index={5}
|
|
|
|
|
onNavigate={onClose}
|
|
|
|
|
title={intl.formatMessage(messages.close)}
|
|
|
|
|
/>
|
|
|
|
|