Skip to content

Commit

Permalink
timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
filippofilip95 committed Oct 27, 2019
1 parent 26067d3 commit e61ba48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ThemeSwitcher/ThemeSwitcher.hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function useToggleTheme(): [boolean, Function] {
emojiList.style.display = 'none';
timeout.current! = setTimeout(() => {
emojiList.style.display = 'flex';
}, 100)
}, 200);
document.documentElement.setAttribute('data-theme', checked ? 'dark' : 'light');
}

Expand Down

0 comments on commit e61ba48

Please sign in to comment.