feat: PWA Support (#1488)

This commit is contained in:
sct
2021-04-25 20:44:12 +09:00
committed by GitHub
parent e6e5ad221a
commit 28830d4ef8
88 changed files with 2022 additions and 650 deletions

View File

@@ -0,0 +1,22 @@
import React from 'react';
import { ToastContainerProps } from 'react-toast-notifications';
const ToastContainer: React.FC<ToastContainerProps> = ({
hasToasts,
...props
}) => {
return (
<div
id="toast-container"
className="fixed max-w-full max-h-full overflow-hidden top-4 right-4"
style={{
pointerEvents: hasToasts ? 'all' : 'none',
zIndex: 10000,
paddingTop: 'env(safe-area-inset-top)',
}}
{...props}
/>
);
};
export default ToastContainer;