chore: remove notification code

This commit is contained in:
Tristan Yang
2022-07-04 18:24:39 +08:00
parent ff7fe05b58
commit 627082eacb
3 changed files with 0 additions and 89 deletions
-25
View File
@@ -1,25 +0,0 @@
import styled from "styled-components";
import useNotification from "../../common/hook/useNotification";
import StyledToggle from "../../common/component/styled/Toggle";
import Label from "../../common/component/styled/Label";
const StyledWrapper = styled.div`
display: flex;
flex-direction: column;
`;
export default function Notifications() {
const { status, enableNotification } = useNotification();
const handleEnableNotify = () => {
if (status !== "granted") {
enableNotification();
}
};
return (
<StyledWrapper>
<Label>Notification Setting:</Label>
<StyledToggle data-checked={status == "granted"} onClick={handleEnableNotify} />
</StyledWrapper>
);
}
-5
View File
@@ -24,11 +24,6 @@ const navs = [
component: <ManageMembers />,
admin: true
}
// {
// name: "notification",
// title: "Notification",
// component: <Notifications />,
// },
]
},
{