Skip to content

Commit

Permalink
๐Ÿš‘ fix: build warning ์ •๋ฆฌ
Browse files Browse the repository at this point in the history
  • Loading branch information
HaeJungg committed Nov 22, 2024
1 parent 751ef7c commit 04a7301
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 27 deletions.
1 change: 0 additions & 1 deletion src/app/(crew)/my-crew/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export default function MyCrewLayout({ children }: { children: ReactNode }) {
<div className="px-3 py-4 md:px-8 md:py-16 lg:px-11.5">
<div className="hidden pb-6 text-3xl font-bold md:block">๋‚˜์˜ ํฌ๋ฃจ</div>
<Tabs
variant="default"
tabs={myCrewTabs}
activeTab={currentTab}
onTabClick={(id) => {
Expand Down
7 changes: 1 addition & 6 deletions src/app/(crew)/my-gathering/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ export default function MyGatheringLayout({
return (
<div className="px-3 py-4 md:px-8 md:py-16 lg:px-11.5">
<div className="hidden pb-6 text-3xl font-bold text-gray-900 md:block">๋‚˜์˜ ์•ฝ์†</div>
<Tabs
variant="default"
tabs={myGatheringTabs}
activeTab={currentTab}
onTabClick={(id) => handleTabClick(id)}
/>
<Tabs tabs={myGatheringTabs} activeTab={currentTab} onTabClick={(id) => handleTabClick(id)} />
<div className="mt-10 hidden w-full border-t-2 border-gray-200 md:block" />
{children}
</div>
Expand Down
3 changes: 0 additions & 3 deletions src/app/(crew)/my-page/_components/profile-card/container.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
'use client';

import { useEffect, useState } from 'react';
import { toast } from 'react-toastify';
import { useRouter } from 'next/navigation';
import { resetUserProfileImage, updateUserProfile } from '@/src/_apis/auth/user-apis';
import { useUser } from '@/src/_queries/auth/user-queries';
import { useAuth } from '@/src/hooks/use-auth';
import ProfileSkeleton from '@/src/components/common/skeleton/profile-skeleton';
import ProfileCardPresenter from './presenter';

Expand Down
2 changes: 1 addition & 1 deletion src/app/(crew)/my-page/_components/review-tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function ReviewTabs() {
<div className="mt-12 flex flex-col">
<h3 className="text-2xl font-semibold text-gray-900">๋‚˜์˜ ๋ฆฌ๋ทฐ ๋ชจ์•„๋ณด๊ธฐ</h3>
<Divider mt={16} mb={24} size={2} />
<Tabs variant="review" tabs={myPageTabs} activeTab={currentTab} onTabClick={handleTabClick} />
<Tabs tabs={myPageTabs} activeTab={currentTab} onTabClick={handleTabClick} />
</div>
);
}
3 changes: 1 addition & 2 deletions src/components/common/tab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export interface TabsProps {
tabs: Tab[];
activeTab: string;
onTabClick: (id: string) => void;
variant?: 'default' | 'review';
}

/**
Expand All @@ -20,7 +19,7 @@ export interface TabsProps {
* @param variant - ํƒญ ์Šคํƒ€์ผ ์œ ํ˜•, ๊ธฐ๋ณธ ๊ฐ’์€ 'default'์ด๋ฉฐ 'review'๋กœ ์ „ํ™˜ ๊ฐ€๋Šฅ
*/

export default function Tabs({ tabs, activeTab, onTabClick, variant = 'default' }: TabsProps) {
export default function Tabs({ tabs, activeTab, onTabClick }: TabsProps) {
const baseStyle =
'rounded-xl w-full border border-blue-500 px-4 py-2 font-bold sm:text-base md:w-max md:text-lg lg:text-lg ';

Expand Down
14 changes: 0 additions & 14 deletions src/components/common/tab/tab.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ const meta: Meta = {
onTabClick: {
description: 'ํƒญ ํด๋ฆญ ์‹œ ํ˜ธ์ถœ๋˜๋Š” ํ•จ์ˆ˜',
},
variant: {
description: 'ํƒญ ์Šคํƒ€์ผ ์œ ํ˜• ("default" | "review")',
control: {
type: 'radio',
options: ['default', 'review'],
},
},
},
};

Expand Down Expand Up @@ -59,10 +52,3 @@ CrewTabs.args = {
tabs: tabData.crewTabs,
activeTab: tabData.crewTabs[0].id,
};

export const ReviewTabs = Template.bind({});
ReviewTabs.args = {
tabs: tabData.reviewTabs,
activeTab: tabData.reviewTabs[0].id,
variant: 'review',
};

0 comments on commit 04a7301

Please sign in to comment.