Skip to content

Commit

Permalink
fix(add readonly type): TipData 상수 객체에 readonly 타입 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hwinkr committed Dec 28, 2023
1 parent d1cedaa commit 1c78718
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/List/TipCardList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from '@emotion/styled';
import React from 'react';

interface TipCardListProps {
tipList: TipData[];
tipList: readonly TipData[];
tipItemRenderer: (tipItem: TipData) => JSX.Element;
}

Expand Down
4 changes: 2 additions & 2 deletions src/constants/tip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface TipData {
link: string;
}

export const SHORTCUT_DATA: TipData[] = [
export const SHORTCUT_DATA: readonly TipData[] = [
{
title: '부경대학교',
subTitle: '부경대학교\n홈페이지로 이동',
Expand Down Expand Up @@ -58,7 +58,7 @@ export const SHORTCUT_DATA: TipData[] = [
},
] as const;

export const HONEY_TIP_DATA: TipData[] = [
export const HONEY_TIP_DATA: readonly TipData[] = [
{
title: '아우란트검사',
subTitle: '인성·역량·취업준비도\n·진로적성검사',
Expand Down

0 comments on commit 1c78718

Please sign in to comment.