Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: 리액트 패키지 업데이트 #358

Merged
merged 2 commits into from
Feb 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 0 additions & 56 deletions .github/workflows/chromatic.yaml

This file was deleted.

38 changes: 19 additions & 19 deletions apps/manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@
"@hcc/icons": "workspace:^",
"@hcc/styles": "workspace:*",
"@hcc/ui": "workspace:*",
"@hookform/resolvers": "^3.6.0",
"@vanilla-extract/css": "^1.14.0",
"@vanilla-extract/css-utils": "^0.1.3",
"@vanilla-extract/recipes": "^0.5.1",
"clsx": "^2.1.0",
"dayjs": "^1.11.10",
"framer-motion": "^11.0.5",
"next": "^14.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.51.5",
"zod": "^3.23.8"
"@hookform/resolvers": "^3.10.0",
"@vanilla-extract/css": "^1.17.1",
"@vanilla-extract/css-utils": "^0.1.4",
"@vanilla-extract/recipes": "^0.5.5",
"clsx": "^2.1.1",
"dayjs": "^1.11.13",
"framer-motion": "^12.0.6",
"next": "^15.1.6",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-hook-form": "^7.54.2",
"zod": "^3.24.1"
},
"devDependencies": {
"@hcc/eslint-config": "workspace:*",
"@hcc/typescript-config": "workspace:*",
"@types/eslint": "^8.56.1",
"@types/node": "^20.10.6",
"@types/react": "^18.2.46",
"@types/react-dom": "^18.2.18",
"@vanilla-extract/next-plugin": "^2.3.6",
"eslint": "^8.56.0",
"typescript": "^5.3.3"
"@types/eslint": "^8.56.12",
"@types/node": "^22.13.0",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vanilla-extract/next-plugin": "^2.4.9",
"eslint": "^8.57.1",
"typescript": "^5.7.3"
}
}
11 changes: 6 additions & 5 deletions apps/spectator/app/game/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const tabs = [
];

export default function Page({ params }: { params: { id: string } }) {
const { id } = params;
const tabState = useQueryValidator(
'tab',
tabs.map(tab => tab.key),
Expand All @@ -60,14 +61,14 @@ export default function Page({ params }: { params: { id: string } }) {
errorFallback={() => <BannerFallback />}
loadingFallback={<BannerSkeleton />}
>
<Banner gameId={params.id} />
<Banner gameId={id} />
</AsyncBoundary>

<AsyncBoundary
errorFallback={() => <CheerVSFallback />}
loadingFallback={<CheerVSSkeleton />}
>
<CheerVS gameId={params.id} />
<CheerVS gameId={id} />
</AsyncBoundary>

<section className={styles.cheerTalk.section}>
Expand All @@ -77,15 +78,15 @@ export default function Page({ params }: { params: { id: string } }) {
errorFallback={() => <Fragment></Fragment>}
loadingFallback={<Fragment></Fragment>}
>
<Live gameId={params.id} />
<Live gameId={id} />
</AsyncBoundary>
</div>

<AsyncBoundary
errorFallback={CheerTalkFallback}
loadingFallback={<Spinner className={styles.spinner} />}
>
<CheerTalk gameId={params.id} defaultState={cheerState} />
<CheerTalk gameId={id} defaultState={cheerState} />
</AsyncBoundary>
</section>

Expand All @@ -112,7 +113,7 @@ export default function Page({ params }: { params: { id: string } }) {
errorFallback={(props: FallbackProps) => tab.errorUI(props)}
loadingFallback={<Spinner />}
>
{tab.renderer(params.id)}
{tab.renderer(id)}
</AsyncBoundary>
</Tabs.Content>
))}
Expand Down
7 changes: 4 additions & 3 deletions apps/spectator/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,17 @@ type PageProps = {
};

export default async function Page({ searchParams }: PageProps) {
const { league, round } = await searchParams;

const year = 2024;
const queryClient = getQueryClient();
const leagues: LeagueListType[] = await useLeaguesPrefetch(year);
const inProgress =
leagues.find(league => league.isInProgress) || leagues?.[0];
const initialLeagueId = Number(searchParams.league) || inProgress?.leagueId;
const initialLeagueId = Number(league) || inProgress?.leagueId;

const leagueDetail = await useLeagueDetailPrefetch(initialLeagueId);
const currentRound =
Number(searchParams.round) || leagueDetail.inProgressRound;
const currentRound = Number(round) || leagueDetail.inProgressRound;

await useLeagueTeamsPrefetch(initialLeagueId, currentRound);

Expand Down
2 changes: 1 addition & 1 deletion apps/spectator/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
47 changes: 23 additions & 24 deletions apps/spectator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,40 @@
"**/*.{ts,tsx}": "eslint --fix --max-warnings 0"
},
"dependencies": {
"@amplitude/analytics-browser": "^2.6.1",
"@amplitude/analytics-browser": "^2.11.11",
"@egjs/react-conveyer": "^1.7.1",
"@egjs/react-flicking": "^3.8.3",
"@hcc/api": "workspace:*",
"@hcc/icons": "workspace:^",
"@hcc/styles": "workspace:*",
"@hcc/ui": "workspace:*",
"@next/third-parties": "^15.0.2",
"@next/third-parties": "^15.1.6",
"@stomp/stompjs": "^7.0.0",
"@tanstack/react-query": "^5.17.19",
"@tanstack/react-query-devtools": "^5.17.21",
"@vanilla-extract/css": "^1.14.0",
"@vanilla-extract/css-utils": "^0.1.3",
"@vanilla-extract/dynamic": "^2.1.0",
"@vercel/analytics": "^1.1.2",
"@vercel/speed-insights": "^1.0.14",
"axios": "^1.6.5",
"dayjs": "^1.11.10",
"framer-motion": "^11.0.5",
"next": "^14.0.4",
"pretendard": "^1.3.9",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"@tanstack/react-query": "^5.66.0",
"@tanstack/react-query-devtools": "^5.66.0",
"@vanilla-extract/css": "^1.17.1",
"@vanilla-extract/css-utils": "^0.1.4",
"@vanilla-extract/dynamic": "^2.1.2",
"@vercel/analytics": "^1.4.1",
"@vercel/speed-insights": "^1.1.0",
"axios": "^1.7.9",
"dayjs": "^1.11.13",
"framer-motion": "^12.0.6",
"next": "^15.1.6",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@hcc/eslint-config": "workspace:*",
"@hcc/typescript-config": "workspace:*",
"@types/eslint": "^8.56.1",
"@types/eslint": "^8.56.12",
"@types/gtag.js": "^0.0.18",
"@types/node": "^20.10.6",
"@types/react": "^18.2.46",
"@types/react-dom": "^18.2.18",
"@vanilla-extract/next-plugin": "^2.3.6",
"clsx": "^2.1.0",
"eslint": "^8.56.0",
"typescript": "^5.3.3"
"@types/node": "^22.13.0",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vanilla-extract/next-plugin": "^2.4.9",
"clsx": "^2.1.1",
"eslint": "^8.57.1",
"typescript": "^5.7.3"
}
}
7 changes: 0 additions & 7 deletions docs/storybook/.eslintrc.cjs

This file was deleted.

30 changes: 0 additions & 30 deletions docs/storybook/.storybook/main.ts

This file was deleted.

25 changes: 0 additions & 25 deletions docs/storybook/.storybook/preview.tsx

This file was deleted.

41 changes: 0 additions & 41 deletions docs/storybook/package.json

This file was deleted.

2 changes: 0 additions & 2 deletions docs/storybook/scripts/chromatic_publish.sh

This file was deleted.

25 changes: 0 additions & 25 deletions docs/storybook/src/styles/globals.css.ts

This file was deleted.

4 changes: 0 additions & 4 deletions docs/storybook/src/styles/layers.css.ts

This file was deleted.

Loading