Refactor code and add loading components in marketing apps

This commit alters the source of the cache module import used in [...slug]/page.tsx from 'next/cache' to 'react'. Import statements in blog/page.tsx and docs/layout.tsx have been restructured for clarity, keeping local imports separate. Added new loading.tsx files in both blog and docs directories that exports the GlobalLoader from '@kit/ui/global-loader'.
This commit is contained in:
giancarlo
2024-05-01 16:47:25 +07:00
parent 898e1c3dbb
commit 809b36dd96
5 changed files with 14 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
import { unstable_cache as cache } from 'next/cache';
import { cache } from 'react';
import { notFound } from 'next/navigation';
import { ContentRenderer, createCmsClient } from '@kit/cms';