-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: card swiper with multiple cards
- Loading branch information
1 parent
675e62b
commit c902929
Showing
3 changed files
with
58 additions
and
55 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
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,52 +1,52 @@ | ||
const tasks = [ | ||
{ | ||
"id": 123, | ||
"name": "Bad putzen", | ||
"urgency": 3, | ||
"importance": 2, | ||
"fun_factor": 1, | ||
"duration": 30, | ||
"deadline": 1345354361, | ||
"depends_on": [], | ||
"creation_date": 173864511234, | ||
"status": "open" | ||
id: 123, | ||
name: "Bad putzen", | ||
urgency: 3, | ||
importance: 2, | ||
fun_factor: 1, | ||
duration: 30, | ||
deadline: 1345354361, | ||
depends_on: [], | ||
creation_date: 173864511234, | ||
status: "open", | ||
}, | ||
{ | ||
"id": 234, | ||
"name": "Steuererklärung", | ||
"urgency": 1, | ||
"importance": 2, | ||
"fun_factor": 1, | ||
"duration": 30, | ||
"deadline": 1345354361, | ||
"depends_on": [], | ||
"creation_date": 173864511234, | ||
"status": "closed" | ||
id: 234, | ||
name: "Steuererklärung", | ||
urgency: 1, | ||
importance: 2, | ||
fun_factor: 1, | ||
duration: 30, | ||
deadline: 1345354361, | ||
depends_on: [], | ||
creation_date: 173864511234, | ||
status: "closed", | ||
}, | ||
{ | ||
"id": 345, | ||
"name": "Matheaufgaben", | ||
"urgency": 3, | ||
"importance": 2, | ||
"fun_factor": 1, | ||
"duration": 30, | ||
"deadline": 1345354361, | ||
"depends_on": [], | ||
"creation_date": 173864511234, | ||
"status": "open" | ||
id: 345, | ||
name: "Matheaufgaben", | ||
urgency: 3, | ||
importance: 2, | ||
fun_factor: 1, | ||
duration: 30, | ||
deadline: 1345354361, | ||
depends_on: [], | ||
creation_date: 173864511234, | ||
status: "open", | ||
}, | ||
{ | ||
"id": 456, | ||
"name": "Einkaufen", | ||
"urgency": 3, | ||
"importance": 2, | ||
"fun_factor": 1, | ||
"duration": 30, | ||
"deadline": 1345354361, | ||
"depends_on": [], | ||
"creation_date": 173864511234, | ||
"status": "open" | ||
} | ||
id: 456, | ||
name: "Einkaufen", | ||
urgency: 3, | ||
importance: 2, | ||
fun_factor: 1, | ||
duration: 30, | ||
deadline: 1345354361, | ||
depends_on: [], | ||
creation_date: 173864511234, | ||
status: "open", | ||
}, | ||
]; | ||
|
||
export default tasks; | ||
export default tasks; |
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,11 +1,17 @@ | ||
"use client"; | ||
|
||
import Image from "next/image"; | ||
import styles from "./page.module.css"; | ||
import TinderSwiper from "../components/TinderSwiper/TinderSwiper"; | ||
import React, { useState } from "react"; | ||
import defaultTask from "@/app/testdata/tasks"; | ||
|
||
export default function Tinder() { | ||
const [tasks, setTasks] = useState(defaultTask); | ||
|
||
return ( | ||
<> | ||
<TinderSwiper taskId="123" taskName="Update your node JS dependencies" /> | ||
<TinderSwiper tasks={tasks} /> | ||
</> | ||
); | ||
} |