Skip to content

Commit

Permalink
feat: style 사용 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
miro-ring committed Dec 30, 2023
1 parent 96d1358 commit c7ee38a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Toast/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect } from 'react';

import { useToast } from '@/src/stores/toastStore';

import { toast } from './style.css';
import * as styles from './style.css';

const Toast = () => {
const { toastData, hideToast } = useToast();
Expand All @@ -20,7 +20,7 @@ const Toast = () => {
}, [hideToast, isToastVisible, type]);

return (
<div className={toast({ isActive: isToastVisible })} role="alert">
<div className={styles.toast({ isActive: isToastVisible })} role="alert">
<span>{message}</span>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Toast/style.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const toast = recipe({
base: [
modalLayer,
sprinkles({
fontSize: '14/Body/Regular',
typography: '14/Body/Regular',
}),
{
backgroundColor: theme.colors['Dim/70'],
Expand Down
2 changes: 1 addition & 1 deletion src/styles/sprinkles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { COLORS, TYPOGRAPHY } from './tokens';

const fontProperties = defineProperties({
properties: {
fontSize: TYPOGRAPHY,
typography: TYPOGRAPHY,
},
});

Expand Down

0 comments on commit c7ee38a

Please sign in to comment.