Skip to content

Commit

Permalink
refactor(Header): 하드코딩된 color를 theme 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
vi-wolhwa committed Aug 1, 2024
1 parent 5884f72 commit 6cfce0b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Link } from 'react-router-dom';

import { logoIcon, newTemplateIcon, userMenuIcon } from '@/assets/images';
import { Flex, Heading, Text } from '@/components';
import { theme } from '../../style/theme';
import * as S from './Header.style';

const Header = () => (
Expand All @@ -26,15 +27,15 @@ const Logo = () => (
<Link to={'/'}>
<Flex align='center' gap='1rem'>
<img src={logoIcon} alt='로고 버튼' />
<Heading.XSmall color='#FF9500'>코드잽</Heading.XSmall>
<Heading.XSmall color={theme.color.light.primary_800}>코드잽</Heading.XSmall>
</Flex>
</Link>
);

const NavOption = ({ route, name }: { route: string; name: string }) => (
<Link to={route}>
<S.NavOptionButton>
<Text.Medium weight='bold' color='#393E46'>
<Text.Medium weight='bold' color={theme.color.light.secondary_800}>
{name}
</Text.Medium>
</S.NavOptionButton>
Expand All @@ -45,7 +46,7 @@ const NewTemplateButton = () => (
<Link to={'/templates/upload'}>
<S.NewTemplateButton>
<img src={newTemplateIcon} alt='' />
<Text.Small weight='bold' color='#FF9500'>
<Text.Small weight='bold' color={theme.color.light.primary_800}>
새 템플릿
</Text.Small>
</S.NewTemplateButton>
Expand Down

0 comments on commit 6cfce0b

Please sign in to comment.