Skip to content

Commit

Permalink
fix: remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmch committed Jul 21, 2023
1 parent 0f1c1b6 commit f9dac62
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/editor/components/ControlPanel/ControlPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,7 @@ const ControlPanel = ({
</RadioButton>
</div>
<div className={b('theme-switch')}>
<Select
className={b('radio-button')}
value={[theme]}
onUpdate={(value) => onThemeSwitch(value[0] as Theme)}
>
<Select value={[theme]} onUpdate={(value) => onThemeSwitch(value[0] as Theme)}>
{Object.values(Theme).map((theme) => (

Check warning on line 65 in src/editor/components/ControlPanel/ControlPanel.tsx

View workflow job for this annotation

GitHub Actions / Verify Files

'theme' is already declared in the upper scope on line 37 column 5
<Select.Option key={theme} value={theme}>
{themeNames[theme]}
Expand Down

0 comments on commit f9dac62

Please sign in to comment.