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
No known key found for this signature in database
GPG Key ID: 4345B2060657F330

View File

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