|
1 | 1 | import {useTranslation} from 'next-i18next'; |
2 | 2 | import {useMemo} from 'react'; |
3 | 3 | import { |
4 | | - ApartmentCardPreview, |
5 | | - DashboardPreview2, |
6 | | - KubernetesPreview, |
7 | | - MailPreview, |
8 | | - OsnPreview, |
9 | | - TablePreview, |
10 | | - TasksPreview, |
| 4 | + LazyApartmentCardPreview, |
| 5 | + LazyDashboardPreview2, |
| 6 | + LazyKubernetesPreview, |
| 7 | + LazyMailPreview, |
| 8 | + LazyOsnPreview, |
| 9 | + LazyTablePreview, |
| 10 | + LazyTasksPreview, |
11 | 11 | } from 'src/components/UISamples'; |
12 | 12 |
|
13 | 13 | import dashboardImage from '../../assets/ui-samples/card-dashboard.jpg'; |
@@ -36,50 +36,50 @@ export const useSampleComponents = () => { |
36 | 36 | { |
37 | 37 | type: SampleComponent.Dashboard, |
38 | 38 | imagePreviewSrc: dashboardImage.src, |
39 | | - Component: DashboardPreview2, |
| 39 | + Component: LazyDashboardPreview2, |
40 | 40 | title: t('ui_samples_dashboard_tab'), |
41 | 41 | breadCrumbsItems: ['Dashboard'], |
42 | 42 | blank: true, |
43 | 43 | }, |
44 | 44 | { |
45 | 45 | type: SampleComponent.HotelBooking, |
46 | 46 | imagePreviewSrc: hotelBookingImage.src, |
47 | | - Component: ApartmentCardPreview, |
| 47 | + Component: LazyApartmentCardPreview, |
48 | 48 | title: t('ui_samples_apartment_tab'), |
49 | 49 | blank: true, |
50 | 50 | }, |
51 | 51 | { |
52 | 52 | type: SampleComponent.Listing, |
53 | 53 | imagePreviewSrc: listingImage.src, |
54 | | - Component: TablePreview, |
| 54 | + Component: LazyTablePreview, |
55 | 55 | title: t('ui_samples_table_tab'), |
56 | 56 | breadCrumbsItems: ['Table'], |
57 | 57 | }, |
58 | 58 | { |
59 | 59 | type: SampleComponent.TaskTracker, |
60 | 60 | imagePreviewSrc: taskTrackerImage.src, |
61 | | - Component: TasksPreview, |
| 61 | + Component: LazyTasksPreview, |
62 | 62 | title: t('ui_samples_task_tracker_tab'), |
63 | 63 | blank: true, |
64 | 64 | }, |
65 | 65 | { |
66 | 66 | type: SampleComponent.Kubernetes, |
67 | 67 | imagePreviewSrc: kubernetesImage.src, |
68 | | - Component: KubernetesPreview, |
| 68 | + Component: LazyKubernetesPreview, |
69 | 69 | title: t('ui_samples_kubernetes_tab'), |
70 | 70 | blank: true, |
71 | 71 | }, |
72 | 72 | { |
73 | 73 | type: SampleComponent.Osn, |
74 | 74 | imagePreviewSrc: osnImage.src, |
75 | | - Component: OsnPreview, |
| 75 | + Component: LazyOsnPreview, |
76 | 76 | title: t('ui_samples_osn_tab'), |
77 | 77 | blank: true, |
78 | 78 | }, |
79 | 79 | { |
80 | 80 | type: SampleComponent.Mail, |
81 | 81 | imagePreviewSrc: mailImage.src, |
82 | | - Component: MailPreview, |
| 82 | + Component: LazyMailPreview, |
83 | 83 | title: t('ui_samples_mail_tab'), |
84 | 84 | blank: true, |
85 | 85 | }, |
|
0 commit comments