Skip to content

Commit

Permalink
Ran linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ojima committed Dec 19, 2023
1 parent e30faeb commit ce63bb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/lib/toast/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type Toast = (params: ToastParams) => void;
/** Internal toast context. */
export interface ToastContext {
state: ToastState;
toast: Toast
toast: Toast;
}
export interface ToastParams {
message: string;
Expand Down Expand Up @@ -106,7 +106,7 @@ export const createToastContext = (): ToastContext => {
/** Provide toast state to a component tree. */
export const provideToast = (context = createToastContext()): Toast => {
setContext(ToastContextKey, context);
return context.toast
return context.toast;
};

const useToastContext = (): ToastContext => {
Expand Down

0 comments on commit ce63bb9

Please sign in to comment.