Skip to content

Commit

Permalink
Remove mocked fix
Browse files Browse the repository at this point in the history
  • Loading branch information
barbara-chaves committed Nov 30, 2023
1 parent 4a663f2 commit 54d7c62
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 316 deletions.
6 changes: 1 addition & 5 deletions client/src/containers/story/steps/layouts/outro-step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useSetRecoilState } from 'recoil';

import env from '@/env.mjs';

import { isFlyingBackAtom, layersAtom } from '@/store';
import { isFlyingBackAtom } from '@/store';

import { StepLayoutItem, StepLayoutOutroStepComponent } from '@/types/generated/strapi.schemas';

Expand All @@ -23,7 +23,6 @@ type MediaStepLayoutProps = {

const OutroStepLayout = ({ step, showContent }: MediaStepLayoutProps) => {
const { push } = useRouter();
const setLayers = useSetRecoilState(layersAtom);

const setIsFlyingBack = useSetRecoilState(isFlyingBackAtom);

Expand All @@ -45,9 +44,6 @@ const OutroStepLayout = ({ step, showContent }: MediaStepLayoutProps) => {
});

useEffect(() => {
// TEMPORARY FIX
setLayers([5]);

if (!showContent) setShow(false);
}, [showContent]);

Expand Down
2 changes: 1 addition & 1 deletion cms/config/middlewares.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default [
name: 'strapi::cors',
config: {
enabled: true,
origin: ['http://localhost:3000', 'http://localhost:1337']
origin: ['http://localhost:3000', 'http://localhost:1337', 'http://localhost:8000']
}
},
'strapi::poweredBy',
Expand Down
Loading

0 comments on commit 54d7c62

Please sign in to comment.