renamed Notification to ToastNotification
This commit is contained in:
parent
b7d63ee833
commit
f9d38c8c6c
|
@ -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);
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue