Skip to content

Commit

Permalink
Chore: AnnounceCard 컴포넌트 props 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hwinkr committed Jul 18, 2023
1 parent a4b655d commit a63df1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Card/AnnounceCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import styled from '@emotion/styled';
import { THEME } from '@styles/ThemeProvider/theme';
import { AnnounceItem } from '@type/announcement';

const AnnounceCard = ({ title, path, date }: AnnounceItem) => {
const AnnounceCard = ({ title, link, uploadDate }: AnnounceItem) => {
const onClick = () => {
window.location.href = path;
window.location.href = link;
};
return (
<Card onClick={onClick} data-testid="card">
Expand All @@ -23,7 +23,7 @@ const AnnounceCard = ({ title, path, date }: AnnounceItem) => {
margin: 0 10px;
`}
/>
<span>{date}</span>
<span>{uploadDate}</span>
</div>
</Card>
);
Expand Down

0 comments on commit a63df1e

Please sign in to comment.