-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: clientWrapper workaround component, data test
- Loading branch information
Showing
2 changed files
with
30 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
"use client"; | ||
import { QuestionWrapper } from "@repo/design-system/ui"; | ||
import { BottomBar } from "@repo/design-system/ui"; | ||
import { | ||
ClientBottomBar, | ||
ClientQuestionWrapper, | ||
} from "../../temp/ClientWrapper"; | ||
|
||
export default async function Page() { | ||
const res = await fetch( | ||
"https://www.volebnikalkulacka.cz/data/instance/volebnikalkulacka.cz/krajske-2024/10-jihomoravsky/questions.json", | ||
); | ||
|
||
const data = await res.json(); | ||
|
||
console.log(data); | ||
|
||
export default function Page() { | ||
return ( | ||
<div className="grid h-96 content-between"> | ||
<QuestionWrapper /> | ||
<BottomBar /> | ||
<div> | ||
{data.map((item) => ( | ||
<span>{item.title}</span> | ||
))} | ||
<ClientQuestionWrapper /> | ||
<ClientBottomBar /> | ||
</div> | ||
); | ||
} | ||
|
||
// TODO | ||
// 1. Buttons on mobile wihout texts WIDTH! | ||
// 2. Statuses proper styling (bg) check with live | ||
// 3. Bottom bar positioning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"use client"; | ||
|
||
import { QuestionWrapper, BottomBar } from "@repo/design-system/ui"; | ||
|
||
export function ClientQuestionWrapper(props: any) { | ||
return <QuestionWrapper {...props} />; | ||
} | ||
|
||
export function ClientBottomBar(props: any) { | ||
return <BottomBar {...props} />; | ||
} |