mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
move Toast comonent
This commit is contained in:
+5
-1
@@ -5,7 +5,11 @@ const RESTRICTED_MODULES = {
|
||||
{ name: '@metamask/providers', message: 'Please lazy-load @metamask/providers or use useProvider hook instead' },
|
||||
{ name: '@metamask/post-message-stream', message: 'Please lazy-load @metamask/post-message-stream or use useProvider hook instead' },
|
||||
{ name: 'playwright/TestApp', message: 'Please use render() fixture from test() function of playwright/lib module' },
|
||||
{ name: '@chakra-ui/react', importNames: [ 'Popover' ], message: 'Please use ui/shared/chakra/Popover.tsx component instead' },
|
||||
{
|
||||
name: '@chakra-ui/react',
|
||||
importNames: [ 'Popover', 'useToast' ],
|
||||
message: 'Please use corresponding component or hook from ui/shared/chakra component instead',
|
||||
},
|
||||
],
|
||||
patterns: [
|
||||
'icons/*',
|
||||
|
||||
@@ -2,7 +2,7 @@ import type { UseToastOptions, ToastProps } from '@chakra-ui/react';
|
||||
import { createToastFn, useChakra } from '@chakra-ui/react';
|
||||
import React from 'react';
|
||||
|
||||
import Toast from 'ui/shared/Toast';
|
||||
import Toast from 'ui/shared/chakra/Toast';
|
||||
|
||||
// there is no toastComponent prop in UseToastOptions type
|
||||
// but these options will be passed to createRenderToast under the hood
|
||||
|
||||
Reference in New Issue
Block a user