mirror of
https://github.com/sct/overseerr.git
synced 2025-12-31 01:55:53 +01:00
feat: PWA Support (#1488)
This commit is contained in:
22
src/components/ToastContainer/index.tsx
Normal file
22
src/components/ToastContainer/index.tsx
Normal 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;
|
||||
Reference in New Issue
Block a user