From f460cc884a824e580ceb3ec516dda2a5a5ee5496 Mon Sep 17 00:00:00 2001 From: klmhyeonwoo Date: Sat, 10 Aug 2024 00:51:46 +0900 Subject: [PATCH 1/2] fix: #75 Fix Button Provider Sticky Error --- src/component/template/ExampleButton.tsx | 36 ++++++++++++++++++++++++ src/layout/DefaultLayout.tsx | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 src/component/template/ExampleButton.tsx diff --git a/src/component/template/ExampleButton.tsx b/src/component/template/ExampleButton.tsx new file mode 100644 index 00000000..dc24d761 --- /dev/null +++ b/src/component/template/ExampleButton.tsx @@ -0,0 +1,36 @@ +import { css } from "@emotion/react"; +import { ButtonHTMLAttributes, PropsWithChildren } from "react"; + +import { Icon } from "@/component/common/Icon"; + +export function ExampleButton({ children = "회고 예시 보기" }: PropsWithChildren, "type">>) { + return ( + + ); +} diff --git a/src/layout/DefaultLayout.tsx b/src/layout/DefaultLayout.tsx index 4519fd9a..ef87b1c7 100644 --- a/src/layout/DefaultLayout.tsx +++ b/src/layout/DefaultLayout.tsx @@ -25,7 +25,7 @@ export function DefaultLayout({ children, title, theme = "default", height, appB display: flex; flex-direction: column; padding: 0 2rem; - min-height: calc(100dvh - ${height ?? `5.8rem`}); + height: calc(100dvh - ${height ?? `5.8rem`}); `} > {children} From 93e935598d4aee07133af3bbb8fb561a4ee0262d Mon Sep 17 00:00:00 2001 From: klmhyeonwoo Date: Sat, 10 Aug 2024 01:00:22 +0900 Subject: [PATCH 2/2] Removed Unrelated Files --- src/component/template/ExampleButton.tsx | 36 ------------------------ 1 file changed, 36 deletions(-) delete mode 100644 src/component/template/ExampleButton.tsx diff --git a/src/component/template/ExampleButton.tsx b/src/component/template/ExampleButton.tsx deleted file mode 100644 index dc24d761..00000000 --- a/src/component/template/ExampleButton.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import { css } from "@emotion/react"; -import { ButtonHTMLAttributes, PropsWithChildren } from "react"; - -import { Icon } from "@/component/common/Icon"; - -export function ExampleButton({ children = "회고 예시 보기" }: PropsWithChildren, "type">>) { - return ( - - ); -}