Skip to content

Commit 52e5f71

Browse files
committed
fix type error
1 parent 0c99931 commit 52e5f71

File tree

1 file changed

+7
-2
lines changed
  • packages/component-lib/src/components/toast

1 file changed

+7
-2
lines changed

packages/component-lib/src/components/toast/index.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,19 @@ import {
55
GoodIcon,
66
InfoIcon,
77
SnackbarMessage,
8-
ToastType,
98
} from '@loopring-web/common-resources'
109
import styled from '@emotion/styled'
1110
import { withTranslation, WithTranslation } from 'react-i18next'
1211
import React from 'react'
1312
import { VendorIconItem } from '../tradePanel'
1413

14+
export enum ToastType {
15+
success = 'success',
16+
error = 'error',
17+
warning = 'warning',
18+
info = 'info',
19+
}
20+
1521
export type TOASTOPEN = {
1622
open: boolean
1723
content: JSX.Element | string
@@ -140,4 +146,3 @@ export const NoticePanelSnackBar = ({
140146
)
141147
}
142148

143-
export { ToastType }

0 commit comments

Comments
 (0)