Skip to content

Commit 3a94bbf

Browse files
committed
Reorder web default configuration selectors alphabetically in WebSection
- order defaults alphabetically └── apps └── editor └── src └── views └── settings └── frontend └── Home └── sections ├── ApiSection.tsx ├── CliSection.tsx └── WebSection.tsx
1 parent af8f39f commit 3a94bbf

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎apps/editor/src/views/settings/frontend/Home/sections/WebSection.tsx‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -358,44 +358,44 @@ export const WebSection = forwardRef<HTMLDivElement, Props>((props, ref) => {
358358
}}
359359
/>
360360
<DefaultConfigurationSelector
361-
title={t('common.intelligent-search')}
362-
value={props.web_defaults['intelligent-search'] || null}
361+
title={t('common.commit-message')}
362+
value={props.web_defaults['commit-message'] || null}
363363
configurations={selector_configurations}
364364
on_unset={() =>
365-
props.on_set_default_web_configuration('intelligent-search', null)
365+
props.on_set_default_web_configuration('commit-message', null)
366366
}
367367
on_select={() =>
368-
props.on_select_default_web_configuration('intelligent-search')
368+
props.on_select_default_web_configuration('commit-message')
369369
}
370370
translations={{
371371
select: t('chatbots.configurations.action.select-default'),
372372
unset: t('common.unset-default')
373373
}}
374374
/>
375375
<DefaultConfigurationSelector
376-
title={t('common.patch-repair')}
377-
value={props.web_defaults['patch-repair'] || null}
376+
title={t('common.intelligent-search')}
377+
value={props.web_defaults['intelligent-search'] || null}
378378
configurations={selector_configurations}
379379
on_unset={() =>
380-
props.on_set_default_web_configuration('patch-repair', null)
380+
props.on_set_default_web_configuration('intelligent-search', null)
381381
}
382382
on_select={() =>
383-
props.on_select_default_web_configuration('patch-repair')
383+
props.on_select_default_web_configuration('intelligent-search')
384384
}
385385
translations={{
386386
select: t('chatbots.configurations.action.select-default'),
387387
unset: t('common.unset-default')
388388
}}
389389
/>
390390
<DefaultConfigurationSelector
391-
title={t('common.commit-message')}
392-
value={props.web_defaults['commit-message'] || null}
391+
title={t('common.patch-repair')}
392+
value={props.web_defaults['patch-repair'] || null}
393393
configurations={selector_configurations}
394394
on_unset={() =>
395-
props.on_set_default_web_configuration('commit-message', null)
395+
props.on_set_default_web_configuration('patch-repair', null)
396396
}
397397
on_select={() =>
398-
props.on_select_default_web_configuration('commit-message')
398+
props.on_select_default_web_configuration('patch-repair')
399399
}
400400
translations={{
401401
select: t('chatbots.configurations.action.select-default'),

0 commit comments

Comments
 (0)