added WeekSelector

This commit is contained in:
AlexE030
2023-05-04 12:33:20 +02:00
parent cc39ce4e90
commit 1614bdc04d
4 changed files with 39 additions and 19 deletions
+2 -17
View File
@@ -3,6 +3,7 @@ import React, {useState} from "react";
import StatusBar from "@/components/StatusBar";
import Button from "@/components/Button";
import {arrowLeft, arrowRight} from "@/components/Icons";
import WeekSelector from "@/components/WeekSelector";
const inter = Inter({subsets: ['latin']})
@@ -11,22 +12,6 @@ export default function Home(p) {
const [pr, setPr] = useState(0)
return (
<div style={{
display: "flex",
flexDirection: "row",
alignItems: "center",
justifyContent: "space-between",
gap: 30
}}>
<Button onClick={() => {
setPr(pr - 50)
}} width={50} height={50} icon={arrowLeft}/>
<StatusBar progress={pr}/>
<Button onClick={() => {
setPr(pr + 50)
}} width={50} height={50} icon={arrowRight}/>
</div>
<WeekSelector />
)
}