refactor: more TS code

This commit is contained in:
Tristan Yang
2022-07-04 23:13:09 +08:00
parent 627082eacb
commit e0872b1dd3
28 changed files with 56 additions and 126 deletions
-1
View File
@@ -2,7 +2,6 @@ import { FC } from "react";
import styled from "styled-components";
import Modal from "../Modal";
import IconClose from "../../../assets/icons/close.svg";
// import { ReactComponent as IconClose } from "../../../assets/icons/close.svg";
import Button from "../styled/Button";
const Styled = styled.div`
@@ -1,20 +0,0 @@
{
"name": "VoceChat",
"short_name": "Your private chat APP",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"start_url": "/",
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
+1 -1
View File
@@ -6,7 +6,7 @@ export default function usePrompt() {
localStorage.removeItem(KEY_PWA_INSTALLED);
};
const setPrompt = () => {
localStorage.setItem(KEY_PWA_INSTALLED, true);
localStorage.setItem(KEY_PWA_INSTALLED, "true");
};
return {