Skip to content

Commit

Permalink
fix: mock data 상수화
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeseon-han committed Feb 17, 2024
1 parent f8638e9 commit 5b68ff8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import Header from '@/components/organisms/Header';
import Link from 'next/link';
import { AlarmIcon } from '@/assets/icons';

const NEAR_EXPIRATION_COUNT_MOCK_DATA=2;

const Home: NextPage = () => {
const isNearExpirationWarn = true;
return (
Expand All @@ -24,7 +26,7 @@ const Home: NextPage = () => {
/>
<section className={`flex flex-col min-h-screen p-20 bg-gray1`}>
{isNearExpirationWarn && (
<NearExpirationWarnBox className="mt-12" count={5} />
<NearExpirationWarnBox className="mt-12" count={NEAR_EXPIRATION_COUNT_MOCK_DATA} />
)}
<div className="flex gap-8.5 mt-12">
<SvgAndTextBox
Expand Down

0 comments on commit 5b68ff8

Please sign in to comment.