-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ refactor components && fetch token vault informations
- Loading branch information
1 parent
af5b877
commit 1980265
Showing
54 changed files
with
800 additions
and
600 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
import { BigMapEvent } from 'src/types/events'; | ||
import type { BigMapEvent } from '@/types'; | ||
|
||
export const newEvent = (event: BigMapEvent) => | ||
({ | ||
type: 'NEW_EVENT', | ||
payload: { event }, | ||
} as const); | ||
|
||
export const closeToast = () => | ||
({ | ||
type: 'CLOSE_TOAST', | ||
} as const); | ||
export const closeToast = () => | ||
({ | ||
type: 'CLOSE_TOAST', | ||
} as const); | ||
|
||
export const newError = (errorContent: string) => | ||
({ | ||
type: 'NEW_ERROR', | ||
payload: { errorContent }, | ||
} as const); | ||
export const newError = (errorContent: string) => | ||
({ | ||
type: 'NEW_ERROR', | ||
payload: { errorContent }, | ||
} as const); | ||
|
||
export const newInfo = (infoContent: string) => | ||
({ | ||
type: 'NEW_INFO', | ||
payload: { infoContent }, | ||
} as const); | ||
export const newInfo = (infoContent: string) => | ||
({ | ||
type: 'NEW_INFO', | ||
payload: { infoContent }, | ||
} as const); | ||
|
||
export type EventActions = | ||
| ReturnType<typeof newEvent> | ||
| ReturnType<typeof newError> | ||
| ReturnType<typeof newInfo> | ||
| ReturnType<typeof closeToast>; | ||
export type EventActions = | ||
| ReturnType<typeof newEvent> | ||
| ReturnType<typeof newError> | ||
| ReturnType<typeof newInfo> | ||
| ReturnType<typeof closeToast>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.