Skip to content

Commit c5d269f

Browse files
committed
refactor: Extract year-specific data and logic into wrapper components for generic views.
1 parent 89b2582 commit c5d269f

29 files changed

Lines changed: 411 additions & 1648 deletions

src/2023/Cfp/CfpSection2023.tsx

Lines changed: 0 additions & 113 deletions
This file was deleted.

src/2023/Cfp/CfpSectionWrapper.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React, { FC } from "react";
2+
import CfpSection from "@views/Cfp/CfpSection";
3+
import data2023 from "@data/2023.json";
4+
import { data } from "./CfpData";
5+
6+
export const CfpSectionWrapper: FC = () => {
7+
return <CfpSection conferenceConfig={data2023} cfpData={data} />;
8+
};
9+
10+
export default CfpSectionWrapper;

src/2023/Routes.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { Loading } from "@components/Loading/Loading";
2020

2121
const Home2023Wrapper = lazy(() => import("./Home/Home2023Wrapper"));
2222
const Speakers2023 = lazy(
23-
() => import("../components/YearSpecific/Speakers/Speakers2023"),
23+
() => import("./Speakers/SpeakersWrapper"),
2424
);
2525
const SpeakerDetailContainer2023 = lazy(
2626
() => import("./SpeakerDetail/SpeakerDetailContainer2023"),
@@ -36,7 +36,7 @@ const SpeakerInformation2023 = lazy(
3636
() => import("./Speakers/SpeakerInformation2023"),
3737
);
3838
const Communities2023 = lazy(() => import("./Communities/Communities2023"));
39-
const CfpSection2023 = lazy(() => import("./Cfp/CfpSection2023"));
39+
const CfpSection2023 = lazy(() => import("./Cfp/CfpSectionWrapper"));
4040
const SessionFeedback2023 = lazy(
4141
() => import("./SessionFeedback/SessionFeedback2023"),
4242
);

src/2023/Speakers/Speakers2023.test.tsx

Lines changed: 0 additions & 205 deletions
This file was deleted.

0 commit comments

Comments
 (0)