Skip to content

Commit

Permalink
improve dark theme detection on codeKeywords (Dsn selector)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-hariti committed Oct 9, 2024
1 parent 805e7eb commit 4f318a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/codeKeywords/keywordSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export function KeywordSelector({keyword, group, index}: KeywordSelectorProps) {
const [dropdownEl, setDropdownEl] = useState<HTMLElement | null>(null);
const [isAnimating, setIsAnimating] = useState(false);
const [orgFilter, setOrgFilter] = useState('');
const {theme} = useTheme();
const {resolvedTheme: theme} = useTheme();

const isDarkMode = theme === 'dark';
const {isMounted} = useIsMounted();

Expand Down

0 comments on commit 4f318a0

Please sign in to comment.