Skip to content

Commit d4c8430

Browse files
committed
chore: fix small todo
1 parent d685154 commit d4c8430

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

apps/cowswap-frontend/src/cosmos.decorator.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ const DarkModeToggleButton = styled.button`
3737
padding: 6px 10px;
3838
`
3939

40-
// TODO: Add proper return type annotation
41-
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
42-
const DarkModeToggle = ({ children }: { children?: ReactNode }) => {
40+
const DarkModeToggle = ({ children }: { children?: ReactNode }): ReactNode => {
4341
const theme = useContext(ThemeContext)
4442
const [darkMode, toggleDarkModeAux] = useDarkModeManager()
4543
const toggleDarkMode = useCallback(() => {

0 commit comments

Comments
 (0)