Skip to content

Commit

Permalink
[UI] chore: update exported component
Browse files Browse the repository at this point in the history
  • Loading branch information
sohee-K committed Apr 9, 2024
1 parent a811450 commit a1703ec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/chatty-seals-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sopt-makers/ui": patch
---

update exported component
2 changes: 1 addition & 1 deletion packages/ui/Toast/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLDivElement>) {
export function ToastComponent(props: ToastOptionType, ref: React.Ref<HTMLDivElement>) {
const { icon, content, action, style } = props;

return (
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/Toast/index.tsx
Original file line number Diff line number Diff line change
@@ -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";

0 comments on commit a1703ec

Please sign in to comment.