Skip to content

Commit

Permalink
fix: integrate library Toast, ref leather-io/issues#64
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Jun 19, 2024
1 parent 397c90c commit 85f86cf
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 185 deletions.
4 changes: 2 additions & 2 deletions src/app/features/toasts/toasts-provider.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useMemo } from 'react';

import { Toast, ToastLayout } from '@leather-wallet/ui';

import type { HasChildren } from '@app/common/has-children';
import { Toast } from '@app/ui/components/toast/toast';
import { ToastLayout } from '@app/ui/components/toast/toast.layout';

import { ToastContext } from './use-toast';
import { useToastHandlers } from './use-toast-handlers';
Expand Down
2 changes: 1 addition & 1 deletion src/app/features/toasts/use-toast-handlers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useCallback, useMemo, useState } from 'react';

import type { ToastProps } from '@app/ui/components/toast/toast';
import type { ToastProps } from '@leather-wallet/ui';

export function useToastHandlers() {
const [toasts, setToasts] = useState(new Map());
Expand Down
13 changes: 0 additions & 13 deletions src/app/ui/components/toast/toast.layout.tsx

This file was deleted.

92 changes: 0 additions & 92 deletions src/app/ui/components/toast/toast.stories.tsx

This file was deleted.

61 changes: 0 additions & 61 deletions src/app/ui/components/toast/toast.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions src/app/ui/components/toast/toast.utils.tsx

This file was deleted.

0 comments on commit 85f86cf

Please sign in to comment.