From a1703ecaeb7a0bed6ca7f3c5a981e652496ee343 Mon Sep 17 00:00:00 2001 From: sohee Date: Tue, 9 Apr 2024 14:45:57 +0900 Subject: [PATCH] [UI] chore: update exported component --- .changeset/chatty-seals-walk.md | 5 +++++ packages/ui/Toast/Toast.tsx | 2 +- packages/ui/Toast/index.tsx | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/chatty-seals-walk.md diff --git a/.changeset/chatty-seals-walk.md b/.changeset/chatty-seals-walk.md new file mode 100644 index 0000000..b659dae --- /dev/null +++ b/.changeset/chatty-seals-walk.md @@ -0,0 +1,5 @@ +--- +"@sopt-makers/ui": patch +--- + +update exported component diff --git a/packages/ui/Toast/Toast.tsx b/packages/ui/Toast/Toast.tsx index 0832b20..bc7d090 100644 --- a/packages/ui/Toast/Toast.tsx +++ b/packages/ui/Toast/Toast.tsx @@ -2,7 +2,7 @@ import React, { forwardRef } from "react"; import * as Toast from "./parts"; import type { ToastOptionType } from "./types"; -function ToastComponent(props: ToastOptionType, ref: React.Ref) { +export function ToastComponent(props: ToastOptionType, ref: React.Ref) { const { icon, content, action, style } = props; return ( diff --git a/packages/ui/Toast/index.tsx b/packages/ui/Toast/index.tsx index c352a68..87ec6be 100644 --- a/packages/ui/Toast/index.tsx +++ b/packages/ui/Toast/index.tsx @@ -1,4 +1,4 @@ export { default as ToastProvider } from "./ToastProvider"; export { default as useToast } from "./useToast"; -export { default as Toast } from './Toast'; +export { ToastComponent as Toast } from './Toast'; export type { ToastOptionType } from "./types";