-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae61d48
commit fbce9a2
Showing
2 changed files
with
13 additions
and
14 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
21 changes: 9 additions & 12 deletions
21
packages/ui-toolkit/src/components/atoms/Toaster/utils/assets.tsx
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,34 +1,31 @@ | ||
import React from 'react'; | ||
|
||
import { | ||
CheckCircle, | ||
Error, | ||
Info, | ||
Cancel, | ||
Close | ||
} from '@groww-tech/icon-store/mi'; | ||
MdsIcCheckCircleSelected, | ||
MdsIcError, | ||
MdsIcInfo, | ||
MdsIcCancelCircle | ||
} from '@groww-tech/icon-store/mint-icons'; | ||
|
||
import { ToastTypes } from '../types'; | ||
|
||
export const getAsset = (type: ToastTypes): JSX.Element | null => { | ||
switch (type) { | ||
case 'success': | ||
return <CheckCircle size={22} />; | ||
return <MdsIcCheckCircleSelected size={22} />; | ||
|
||
case 'info': | ||
return <Info size={22} />; | ||
return <MdsIcInfo size={22} />; | ||
|
||
case 'warning': | ||
return <Error size={22} />; | ||
return <MdsIcError size={22} />; | ||
|
||
case 'error': | ||
return <Cancel size={22} />; | ||
return <MdsIcCancelCircle size={22} />; | ||
|
||
case 'default': | ||
|
||
default: | ||
return null; | ||
} | ||
}; | ||
|
||
export const CloseIcon = () => <Close size={12} />; |