File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
packages/react-email/src/components/topbar Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 11import * as ToggleGroup from '@radix-ui/react-toggle-group' ;
2- import { Tooltip } from '../tooltip' ;
3- import { cn } from '../../utils' ;
42import { motion } from 'framer-motion' ;
5- import { IconMoon } from '../icons/icon-moon ' ;
3+ import { cn } from '../../utils ' ;
64import { tabTransition } from '../../utils/constants' ;
5+ import { IconMoon } from '../icons/icon-moon' ;
76import { IconSun } from '../icons/icon-sun' ;
7+ import { Tooltip } from '../tooltip' ;
88
99interface ThemeToggleGroupProps {
1010 active : 'light' | 'dark' ;
1111 onChange : ( theme : 'light' | 'dark' ) => unknown ;
1212}
1313
14- export const ThemeToggleGroup = ( { active, onChange } : ThemeToggleGroupProps ) => {
14+ export const ThemeToggleGroup = ( {
15+ active,
16+ onChange,
17+ } : ThemeToggleGroupProps ) => {
1518 return (
1619 < ToggleGroup . Root
1720 aria-label = "Color Scheme"
You can’t perform that action at this time.
0 commit comments