Skip to content

Commit

Permalink
hotfix: remove test page
Browse files Browse the repository at this point in the history
  • Loading branch information
sohee-K committed Mar 30, 2024
1 parent 28a78f0 commit 3b0bd50
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 38 deletions.
1 change: 1 addition & 0 deletions apps/docs/src/stories/Toast.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export const CloseToast: StoryObj = {
name: "CloseToast",
argTypes: { icon: { control: { disable: true } } },
render: () => {
// eslint-disable-next-line react-hooks/rules-of-hooks
const { open, close } = useToast();
const option: ToastOptionType = {
icon: "success",
Expand Down
20 changes: 0 additions & 20 deletions apps/web/app/ToastTemp.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions apps/web/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import url('ui/desktop-variables.css') screen;
@import url('ui/mobile-variables.css') screen and (max-width: 768px);
/* @import url('ui/desktop-variables.css') screen;
@import url('ui/mobile-variables.css') screen and (max-width: 768px); */

* {
box-sizing: border-box;
Expand Down
1 change: 1 addition & 0 deletions apps/web/app/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
align-items: center;
padding: 6rem;
min-height: 100vh;
color: white;
}
9 changes: 1 addition & 8 deletions apps/web/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
"use client";

import { ToastProvider } from "ui";
import styles from "./page.module.css";
import ToastTemp from "./ToastTemp";

export default function Page(): JSX.Element {

return (
<ToastProvider>
<main className={styles.main}>
<ToastTemp />
</main>
</ToastProvider>
<main className={styles.main}>Test Page</main>
);
}
4 changes: 2 additions & 2 deletions packages/ui/CheckBox/style.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ export const checkBoxChecked = styleVariants({

export const checkBoxLabel = styleVariants({
small: [
theme.fontsObject.BODY_14_R,
theme.fontsObject.BODY_3_14_R,
{
marginLeft: '8px',
},
],
large: [
theme.fontsObject.BODY_16_R,
theme.fontsObject.BODY_2_16_R,
{
marginLeft: '10px',
},
Expand Down
8 changes: 2 additions & 6 deletions packages/ui/Toast/useToast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ const useToast = () => {
const { openToast, closeToast } = useContext(ToastContext);

return {
open(option: ToastOptionType) {
openToast(option);
},
close() {
closeToast();
}
open: (option: ToastOptionType) => openToast(option),
close: () => closeToast()
};
};

Expand Down

0 comments on commit 3b0bd50

Please sign in to comment.