Skip to content

Commit c8ea6da

Browse files
committed
feat: Confetti 컴포넌트 추가
1 parent e998d58 commit c8ea6da

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

apps/pyconkr-admin/src/consts/mdx_components.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ const MUIMDXComponents: MDXComponents = {
133133
const PyConKRCommonMDXComponents: MDXComponents = {
134134
Common__Components__Lottie: Common.Components.LottiePlayer,
135135
Common__Components__NetworkLottie: Common.Components.NetworkLottiePlayer,
136+
Common__Components__MDX__Confetti: Common.Components.MDX.Confetti,
136137
Common__Components__MDX__PrimaryStyledDetails: Common.Components.MDX.PrimaryStyledDetails,
137138
Common__Components__MDX__SecondaryStyledDetails: Common.Components.MDX.SecondaryStyledDetails,
138139
Common__Components__MDX__Map: Common.Components.MDX.Map,

apps/pyconkr/src/consts/mdx_components.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ const MUIMDXComponents: MDXComponents = {
133133
const PyConKRCommonMDXComponents: MDXComponents = {
134134
Common__Components__Lottie: Common.Components.LottiePlayer,
135135
Common__Components__NetworkLottie: Common.Components.NetworkLottiePlayer,
136+
Common__Components__MDX__Confetti: Common.Components.MDX.Confetti,
136137
Common__Components__MDX__PrimaryStyledDetails: Common.Components.MDX.PrimaryStyledDetails,
137138
Common__Components__MDX__SecondaryStyledDetails: Common.Components.MDX.SecondaryStyledDetails,
138139
Common__Components__MDX__Map: Common.Components.MDX.Map,
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import * as React from "react";
2+
import ReactConfetti from "react-confetti";
3+
import { useWindowSize } from "react-use";
4+
5+
export const Confetti: React.FC = () => {
6+
const { width, height } = useWindowSize();
7+
return <ReactConfetti width={width} height={height} />;
8+
};

0 commit comments

Comments
 (0)