From f9d38c8c6c1a67fdb9ad56b47b716a1008e12791 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Wed, 16 Feb 2022 09:16:12 +0530 Subject: [PATCH] renamed Notification to ToastNotification --- src/components/{Notification.tsx => ToastNotification.tsx} | 5 ++++- src/pages/gallery/index.tsx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) rename src/components/{Notification.tsx => ToastNotification.tsx} (94%) diff --git a/src/components/Notification.tsx b/src/components/ToastNotification.tsx similarity index 94% rename from src/components/Notification.tsx rename to src/components/ToastNotification.tsx index 020f75a15..a885fc4ab 100644 --- a/src/components/Notification.tsx +++ b/src/components/ToastNotification.tsx @@ -17,7 +17,10 @@ interface Iprops { clearAttributes: () => void; } -export default function Notification({ attributes, clearAttributes }: Iprops) { +export default function ToastNotification({ + attributes, + clearAttributes, +}: Iprops) { const [show, setShow] = useState(false); const closeToast = () => { setShow(false); diff --git a/src/pages/gallery/index.tsx b/src/pages/gallery/index.tsx index d58e21b3b..f6d005f8c 100644 --- a/src/pages/gallery/index.tsx +++ b/src/pages/gallery/index.tsx @@ -104,7 +104,7 @@ import { } from 'types/gallery'; import Collections from 'components/pages/gallery/Collections'; import { VISIBILITY_STATE } from 'constants/file'; -import Notification from 'components/Notification'; +import Notification from 'components/ToastNotification'; export const DeadCenter = styled.div` flex: 1;