refactor: reorganize DisplaySettings component for improved layout
- Moved the assistant icon settings to a new position within the DisplaySettings component for better user experience. - Cleaned up the code by removing redundant sections and ensuring consistent structure in the settings layout.
This commit is contained in:
parent
e760b1be6b
commit
0e44f9cd2a
@ -120,14 +120,6 @@ const DisplaySettings: FC = () => {
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</SettingGroup>
|
</SettingGroup>
|
||||||
<SettingGroup theme={theme}>
|
|
||||||
<SettingTitle>{t('settings.display.assistant.title')}</SettingTitle>
|
|
||||||
<SettingDivider />
|
|
||||||
<SettingRow>
|
|
||||||
<SettingRowTitle>{t('settings.assistant.show.icon')}</SettingRowTitle>
|
|
||||||
<Switch checked={showAssistantIcon} onChange={(checked) => setShowAssistantIcon(checked)} />
|
|
||||||
</SettingRow>
|
|
||||||
</SettingGroup>
|
|
||||||
<SettingGroup theme={theme}>
|
<SettingGroup theme={theme}>
|
||||||
<SettingTitle>{t('settings.display.topic.title')}</SettingTitle>
|
<SettingTitle>{t('settings.display.topic.title')}</SettingTitle>
|
||||||
<SettingDivider />
|
<SettingDivider />
|
||||||
@ -161,6 +153,14 @@ const DisplaySettings: FC = () => {
|
|||||||
<Switch checked={showTopicTime} onChange={(checked) => dispatch(setShowTopicTime(checked))} />
|
<Switch checked={showTopicTime} onChange={(checked) => dispatch(setShowTopicTime(checked))} />
|
||||||
</SettingRow>
|
</SettingRow>
|
||||||
</SettingGroup>
|
</SettingGroup>
|
||||||
|
<SettingGroup theme={theme}>
|
||||||
|
<SettingTitle>{t('settings.display.assistant.title')}</SettingTitle>
|
||||||
|
<SettingDivider />
|
||||||
|
<SettingRow>
|
||||||
|
<SettingRowTitle>{t('settings.assistant.show.icon')}</SettingRowTitle>
|
||||||
|
<Switch checked={showAssistantIcon} onChange={(checked) => setShowAssistantIcon(checked)} />
|
||||||
|
</SettingRow>
|
||||||
|
</SettingGroup>
|
||||||
<SettingGroup theme={theme}>
|
<SettingGroup theme={theme}>
|
||||||
<SettingTitle
|
<SettingTitle
|
||||||
style={{ display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center' }}>
|
style={{ display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user