{externalActionButtons}
- }>
- Follow
-
+
{}}
notificationClosed={() => {}}
>
- }>
- Notify
-
+
diff --git a/web/components/ui/Modal/Modal.tsx b/web/components/ui/Modal/Modal.tsx
index 6e43a0b6e..6149260d7 100644
--- a/web/components/ui/Modal/Modal.tsx
+++ b/web/components/ui/Modal/Modal.tsx
@@ -10,15 +10,16 @@ interface Props {
handleCancel?: () => void;
afterClose?: () => void;
children?: ReactNode;
+ height?: string;
}
export default function Modal(props: Props) {
- const { title, url, visible, handleOk, handleCancel, afterClose, children } = props;
+ const { title, url, visible, handleOk, handleCancel, afterClose, height, children } = props;
const [loading, setLoading] = useState(!!url);
const modalStyle = {
padding: '0px',
- height: '80vh',
+ height: height || '40vh',
};
const iframe = url && (
@@ -69,4 +70,5 @@ Modal.defaultProps = {
handleOk: undefined,
handleCancel: undefined,
afterClose: undefined,
+ height: undefined,
};
diff --git a/web/components/ui/NotifyReminderPopup/NotifyReminderPopup.tsx b/web/components/ui/NotifyReminderPopup/NotifyReminderPopup.tsx
index 074b0b500..f6d9e356d 100644
--- a/web/components/ui/NotifyReminderPopup/NotifyReminderPopup.tsx
+++ b/web/components/ui/NotifyReminderPopup/NotifyReminderPopup.tsx
@@ -1,6 +1,7 @@
import { Popover } from 'antd';
import { CloseOutlined } from '@ant-design/icons';
import React, { useState, useEffect } from 'react';
+import { LOCAL_STORAGE_KEYS, getLocalStorage } from '../../../utils/localStorage';
import s from './NotifyReminderPopup.module.scss';
interface Props {
@@ -14,9 +15,11 @@ export default function NotifyReminderPopup(props: Props) {
const { children, visible, notificationClicked, notificationClosed } = props;
const [visiblePopup, setVisiblePopup] = useState(visible);
const [mounted, setMounted] = useState(false);
+ const [shouldShowPopup, setShouldShowPopup] = useState(false);
useEffect(() => {
setMounted(true);
+ setShouldShowPopup(!getLocalStorage(LOCAL_STORAGE_KEYS.hasDisplayedNotificationModal));
}, []);
const title =
Stay updated!
;
@@ -52,7 +55,8 @@ export default function NotifyReminderPopup(props: Props) {
);
return (
- mounted && (
+ mounted &&
+ shouldShowPopup && (