diff --git a/frontend/src/components/pages/LadderDetails/LadderDetails.tsx b/frontend/src/components/pages/LadderDetails/LadderDetails.tsx index 594f0d2d..90adb2e2 100644 --- a/frontend/src/components/pages/LadderDetails/LadderDetails.tsx +++ b/frontend/src/components/pages/LadderDetails/LadderDetails.tsx @@ -9,7 +9,7 @@ import { LadderDetails } from './modules/LadderDetails'; import NextAdapterApp from 'next-query-params/app'; import { QueryParamProvider } from 'use-query-params'; -export const LadderDetailsPage: React.FC = ({ data, ladderSlug }) => { +const LadderDetailsPage: React.FC = ({ data, ladderSlug }) => { const { currentBand, handleLadderChange, tabsProps } = useLadderDetails(data?.bands); if (!currentBand || !data || !data.bands[currentBand]) { @@ -17,30 +17,34 @@ export const LadderDetailsPage: React.FC = ({ data, ladderSl } return ( - -
- - {data && ( -
-
- -
-
- -
-
- )} -
-
+
+ + {data && ( +
+
+ +
+
+ +
+
+ )} +
); }; + +export const LadderDetailsWrapper: React.FC = (props) => ( + + + +); diff --git a/frontend/src/components/pages/LadderDetails/index.ts b/frontend/src/components/pages/LadderDetails/index.ts index 3a1b622d..57957f5e 100644 --- a/frontend/src/components/pages/LadderDetails/index.ts +++ b/frontend/src/components/pages/LadderDetails/index.ts @@ -1 +1 @@ -export { LadderDetailsPage as LadderDetails } from './LadderDetails'; +export { LadderDetailsWrapper as LadderDetails } from './LadderDetails'; diff --git a/frontend/src/components/pages/MySpace/MySpace.tsx b/frontend/src/components/pages/MySpace/MySpace.tsx index 3174c99d..60736915 100644 --- a/frontend/src/components/pages/MySpace/MySpace.tsx +++ b/frontend/src/components/pages/MySpace/MySpace.tsx @@ -9,20 +9,24 @@ import { LadderTab } from './modules/LadderTab'; import NextAdapterApp from 'next-query-params/app'; import { QueryParamProvider } from 'use-query-params'; -export const MySpace: React.FC = ({ data }) => { +const MySpace: React.FC = ({ data }) => { const { user, currentLevel, nextLevel, ladder } = data; const { currentTab, setCurrentTab } = useMySpace(); return ( - -
- - My Space - -
- -
{currentTab === 'ladder' && }
-
-
+
+ + My Space + +
+ +
{currentTab === 'ladder' && }
+
); }; + +export const MySpaceWrapper: React.FC = (props) => ( + + + +); diff --git a/frontend/src/components/pages/MySpace/index.ts b/frontend/src/components/pages/MySpace/index.ts index ed1483fd..9415568a 100644 --- a/frontend/src/components/pages/MySpace/index.ts +++ b/frontend/src/components/pages/MySpace/index.ts @@ -1 +1 @@ -export { MySpace } from './MySpace'; +export { MySpaceWrapper as MySpace } from './MySpace';