diff --git a/public/UnY4vuO6nU63HZPVv0C5gOmpcypcEiJ55Jkg-oEFOiaDHrjb5lG_8aLWEdVx6Gb4ltml5CHSRaLC4dcz-YEecgldtzhYmaXFBCLiGubm8cfVTHtF79rUOO65UuaKOa18_JoBGAJiNtHUaT-rBrZOlA.png b/public/UnY4vuO6nU63HZPVv0C5gOmpcypcEiJ55Jkg-oEFOiaDHrjb5lG_8aLWEdVx6Gb4ltml5CHSRaLC4dcz-YEecgldtzhYmaXFBCLiGubm8cfVTHtF79rUOO65UuaKOa18_JoBGAJiNtHUaT-rBrZOlA.png new file mode 100644 index 0000000..4e7d4f0 Binary files /dev/null and b/public/UnY4vuO6nU63HZPVv0C5gOmpcypcEiJ55Jkg-oEFOiaDHrjb5lG_8aLWEdVx6Gb4ltml5CHSRaLC4dcz-YEecgldtzhYmaXFBCLiGubm8cfVTHtF79rUOO65UuaKOa18_JoBGAJiNtHUaT-rBrZOlA.png differ diff --git a/src/app/msw/page.tsx b/src/app/msw/page.tsx index ea9039c..39b58ee 100644 --- a/src/app/msw/page.tsx +++ b/src/app/msw/page.tsx @@ -1,6 +1,7 @@ 'use client'; import React, { useEffect } from 'react'; import { wait } from '@/serverActions'; +import Image from 'next/image'; export default function Page() { async function waitf() { @@ -41,6 +42,23 @@ export default function Page() { return (
+ {'img'} + '/UnY4vuO6nU63HZPVv0C5gOmpcypcEiJ55Jkg-oEFOiaDHrjb5lG_8aLWEdVx6Gb4ltml5CHSRaLC4dcz-YEecgldtzhYmaXFBCLiGubm8cfVTHtF79rUOO65UuaKOa18_JoBGAJiNtHUaT-rBrZOlA.png' + } + /> + {'img'}
diff --git a/src/mocks/MswProvider.tsx b/src/mocks/MswProvider.tsx index 1d5e1a3..6162ee9 100644 --- a/src/mocks/MswProvider.tsx +++ b/src/mocks/MswProvider.tsx @@ -5,16 +5,14 @@ import { useState, useEffect } from 'react'; const isMockingMode = true; export const MSWComponent = () => { - const [mswReady, setMSWReady] = useState(!isMockingMode); + const [mswReady, setMSWReady] = useState(false); useEffect(() => { const init = async () => { - if (isMockingMode) { - // const { initMocks } = await import('./index'); - const initMocks = await import('./index').then(res => res.initMocks); - await initMocks(); - setMSWReady(true); - } + // const { initMocks } = await import('./index'); + const initMocks = await import('./index').then(res => res.initMocks); + await initMocks(); + setMSWReady(true); }; if (!mswReady) {