mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +08:00
refactor(ModelSettings): move ResetIcon inside Button component for consistency
This commit is contained in:
parent
44378cc879
commit
9df850b226
@ -75,7 +75,9 @@ const ModelSettings: FC = () => {
|
||||
</Button>
|
||||
{defaultModelValue !== getModelUniqId(DEFAULT_MODEL_MAP.assistant) && (
|
||||
<Tooltip title={t('common.reset')}>
|
||||
<Button icon={<ResetIcon size={16} />} style={{ marginLeft: 8 }} onClick={resetDefaultAssistantModel} />
|
||||
<Button style={{ marginLeft: 8 }} onClick={resetDefaultAssistantModel}>
|
||||
<ResetIcon size={16} />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
)}
|
||||
</RowFlex>
|
||||
@ -104,7 +106,9 @@ const ModelSettings: FC = () => {
|
||||
</Button>
|
||||
{defaultQuickModel !== getModelUniqId(DEFAULT_MODEL_MAP.quick) && (
|
||||
<Tooltip title={t('common.reset')}>
|
||||
<Button icon={<ResetIcon size={16} />} style={{ marginLeft: 8 }} onClick={resetQuickModel} />
|
||||
<Button style={{ marginLeft: 8 }} onClick={resetQuickModel}>
|
||||
<ResetIcon size={16} />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
)}
|
||||
</RowFlex>
|
||||
@ -132,7 +136,9 @@ const ModelSettings: FC = () => {
|
||||
</Button>
|
||||
{defaultTranslateModel !== getModelUniqId(DEFAULT_MODEL_MAP.translate) && (
|
||||
<Tooltip title={t('common.reset')}>
|
||||
<Button icon={<ResetIcon size={16} />} style={{ marginLeft: 8 }} onClick={resetTranslateModel} />
|
||||
<Button style={{ marginLeft: 8 }} onClick={resetTranslateModel}>
|
||||
<ResetIcon size={16} />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
)}
|
||||
</RowFlex>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user