Add loading state to lazy loaded modals

This commit is contained in:
Gabe Kangas
2023-02-10 12:28:27 -08:00
parent bdb914447c
commit f475a37bb6

View File

@@ -54,6 +54,7 @@ const FollowModal = dynamic(
() => import('../../modals/FollowModal/FollowModal').then(mod => mod.FollowModal), () => import('../../modals/FollowModal/FollowModal').then(mod => mod.FollowModal),
{ {
ssr: false, ssr: false,
loading: () => <Skeleton loading active paragraph={{ rows: 8 }} />,
}, },
); );
@@ -64,6 +65,7 @@ const BrowserNotifyModal = dynamic(
), ),
{ {
ssr: false, ssr: false,
loading: () => <Skeleton loading active paragraph={{ rows: 6 }} />,
}, },
); );
@@ -71,6 +73,7 @@ const NotifyReminderPopup = dynamic(
() => import('../NotifyReminderPopup/NotifyReminderPopup').then(mod => mod.NotifyReminderPopup), () => import('../NotifyReminderPopup/NotifyReminderPopup').then(mod => mod.NotifyReminderPopup),
{ {
ssr: false, ssr: false,
loading: () => <Skeleton loading active paragraph={{ rows: 8 }} />,
}, },
); );