refactor: more TS code
This commit is contained in:
@@ -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"
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user