renamed Notification to ToastNotification

This commit is contained in:
Abhinav 2022-02-16 09:16:12 +05:30
parent b7d63ee833
commit f9d38c8c6c
2 changed files with 5 additions and 2 deletions

View file

@ -17,7 +17,10 @@ interface Iprops {
clearAttributes: () => void; clearAttributes: () => void;
} }
export default function Notification({ attributes, clearAttributes }: Iprops) { export default function ToastNotification({
attributes,
clearAttributes,
}: Iprops) {
const [show, setShow] = useState(false); const [show, setShow] = useState(false);
const closeToast = () => { const closeToast = () => {
setShow(false); setShow(false);

View file

@ -104,7 +104,7 @@ import {
} from 'types/gallery'; } from 'types/gallery';
import Collections from 'components/pages/gallery/Collections'; import Collections from 'components/pages/gallery/Collections';
import { VISIBILITY_STATE } from 'constants/file'; import { VISIBILITY_STATE } from 'constants/file';
import Notification from 'components/Notification'; import Notification from 'components/ToastNotification';
export const DeadCenter = styled.div` export const DeadCenter = styled.div`
flex: 1; flex: 1;