Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
6af23f3c
Commit
6af23f3c
authored
Jun 28, 2024
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move Toast comonent
parent
c3675400
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
.eslintrc.js
.eslintrc.js
+5
-1
useToast.tsx
lib/hooks/useToast.tsx
+1
-1
Toast.tsx
ui/shared/chakra/Toast.tsx
+0
-0
No files found.
.eslintrc.js
View file @
6af23f3c
...
@@ -5,7 +5,11 @@ const RESTRICTED_MODULES = {
...
@@ -5,7 +5,11 @@ const RESTRICTED_MODULES = {
{
name
:
'
@metamask/providers
'
,
message
:
'
Please lazy-load @metamask/providers or use useProvider hook instead
'
},
{
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
:
'
@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
:
'
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
:
[
patterns
:
[
'
icons/*
'
,
'
icons/*
'
,
...
...
lib/hooks/useToast.tsx
View file @
6af23f3c
...
@@ -2,7 +2,7 @@ import type { UseToastOptions, ToastProps } from '@chakra-ui/react';
...
@@ -2,7 +2,7 @@ import type { UseToastOptions, ToastProps } from '@chakra-ui/react';
import
{
createToastFn
,
useChakra
}
from
'
@chakra-ui/react
'
;
import
{
createToastFn
,
useChakra
}
from
'
@chakra-ui/react
'
;
import
React
from
'
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
// there is no toastComponent prop in UseToastOptions type
// but these options will be passed to createRenderToast under the hood
// but these options will be passed to createRenderToast under the hood
...
...
ui/shared/Toast.tsx
→
ui/shared/
chakra/
Toast.tsx
View file @
6af23f3c
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment