summaryrefslogtreecommitdiff
path: root/frontend/src/components/Toast.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/Toast.tsx')
-rw-r--r--frontend/src/components/Toast.tsx14
1 files changed, 0 insertions, 14 deletions
diff --git a/frontend/src/components/Toast.tsx b/frontend/src/components/Toast.tsx
index 9a74eb5d..abd8214b 100644
--- a/frontend/src/components/Toast.tsx
+++ b/frontend/src/components/Toast.tsx
@@ -28,21 +28,7 @@ const templateClasses = findModule((mod) => {
return false;
});
-const useComposition = findModuleChild((m: any) => {
- if (typeof m !== 'object') return false;
- for (let prop in m) {
- if (m[prop]?.toString()?.includes('.Get().ChangeMinimumCompositionStateRequest')) return m[prop];
- }
- return false;
-});
-
const Toast: FunctionComponent<ToastProps> = ({ toast }) => {
- const composition = useComposition(2); // 2: overlay
- useEffect(() => {
- return () => {
- composition.releaseComposition();
- };
- }, []);
return (
<div
style={{ '--toast-duration': `${toast.nToastDurationMS}ms` } as React.CSSProperties}