We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c99931 commit 52e5f71Copy full SHA for 52e5f71
packages/component-lib/src/components/toast/index.tsx
@@ -5,13 +5,19 @@ import {
5
GoodIcon,
6
InfoIcon,
7
SnackbarMessage,
8
- ToastType,
9
} from '@loopring-web/common-resources'
10
import styled from '@emotion/styled'
11
import { withTranslation, WithTranslation } from 'react-i18next'
12
import React from 'react'
13
import { VendorIconItem } from '../tradePanel'
14
+export enum ToastType {
15
+ success = 'success',
16
+ error = 'error',
17
+ warning = 'warning',
18
+ info = 'info',
19
+}
20
+
21
export type TOASTOPEN = {
22
open: boolean
23
content: JSX.Element | string
@@ -140,4 +146,3 @@ export const NoticePanelSnackBar = ({
140
146
)
141
147
}
142
148
143
-export { ToastType }
0 commit comments