Skip to content

Commit

Permalink
replace mi icons with mint icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Shiv-Dangi committed Nov 13, 2024
1 parent ae61d48 commit fbce9a2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
6 changes: 4 additions & 2 deletions packages/ui-toolkit/src/components/atoms/Toaster/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import React, {
CSSProperties
} from 'react';

import { getAsset, CloseIcon } from './utils/assets';
import { MdsIcCloseCross as CloseIcon } from '@groww-tech/icon-store/mint-icons';

import { getAsset } from './utils/assets';
import { useIsDocumentHidden } from './utils/hooks';
import { HeightT, ToastProps } from './types';

Expand Down Expand Up @@ -242,7 +244,7 @@ const Toast = (props: ToastProps) => {
}
className='borderPrimary contentPrimary'
>
<CloseIcon />
<CloseIcon size={12} />
</button>
) : null
}
Expand Down
21 changes: 9 additions & 12 deletions packages/ui-toolkit/src/components/atoms/Toaster/utils/assets.tsx
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} />;

0 comments on commit fbce9a2

Please sign in to comment.