mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-11 16:06:50 +02:00
✨ Improvements to table component (#809)
This commit is contained in:
parent
b727c3f5e5
commit
83ad12b884
18 changed files with 711 additions and 618 deletions
|
@ -20,7 +20,7 @@ async function main() {
|
|||
const polls = await Promise.all(
|
||||
Array.from({ length: 20 }).map(async (_, i) => {
|
||||
// create some polls with no duration (all day) and some with a random duration.
|
||||
const duration = i % 5 === 0 ? 15 * randInt(8) : 0;
|
||||
const duration = i % 2 === 0 ? 15 * randInt(8) : 0;
|
||||
const poll = await prisma.poll.create({
|
||||
include: {
|
||||
participants: true,
|
||||
|
@ -43,7 +43,7 @@ async function main() {
|
|||
.betweens(
|
||||
Date.now(),
|
||||
Date.now() + 1000 * 60 * 60 * 24 * 30,
|
||||
randInt(16, 1),
|
||||
randInt(30, 1),
|
||||
)
|
||||
.map((date) => {
|
||||
// rounded to nearest 15 minutes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue