mirror of
https://github.com/randyjc/Rahoot.git
synced 2026-03-13 20:15:35 +01:00
fixed issue witn npmn
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
],
|
||||
"media": {
|
||||
"type": "audio",
|
||||
"url": "https://upload.wikimedia.org/wikipedia/commons/transcoded/4/4c/Beethoven_Moonlight_1st_movement.ogg/Beethoven_Moonlight_1st_movement.ogg.mp3"
|
||||
"url": "https://file-examples.com/storage/fee95f49ad692e9489b0fab/2017/11/file_example_WAV_1MG.wav"
|
||||
},
|
||||
"solution": 1,
|
||||
"cooldown": 5,
|
||||
@@ -32,22 +32,6 @@
|
||||
"solution": 3,
|
||||
"cooldown": 5,
|
||||
"time": 60
|
||||
},
|
||||
{
|
||||
"question": "What kind of animal is featured here?",
|
||||
"answers": [
|
||||
"Dolphin",
|
||||
"Panda",
|
||||
"Horse",
|
||||
"Penguin"
|
||||
],
|
||||
"media": {
|
||||
"type": "youtube",
|
||||
"url": "https://www.youtube.com/watch?v=2k1qW3D0q6c"
|
||||
},
|
||||
"solution": 2,
|
||||
"cooldown": 5,
|
||||
"time": 40
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import { QuestionMedia } from "@rahoot/common/types/game"
|
||||
import type { QuestionMedia as QuestionMediaType } from "@rahoot/common/types/game"
|
||||
import clsx from "clsx"
|
||||
import { useEffect, useMemo, useRef, useState } from "react"
|
||||
|
||||
@@ -80,7 +80,7 @@ const extractYoutubeId = (url: string) => {
|
||||
}
|
||||
|
||||
type Props = {
|
||||
media?: QuestionMedia
|
||||
media?: QuestionMediaType
|
||||
alt: string
|
||||
onPlayChange?: (_playing: boolean) => void
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import { QuestionMedia, QuizzWithId } from "@rahoot/common/types/game"
|
||||
import type { QuestionMedia, QuizzWithId } from "@rahoot/common/types/game"
|
||||
import Button from "@rahoot/web/components/Button"
|
||||
import Input from "@rahoot/web/components/Input"
|
||||
import { useEvent, useSocket } from "@rahoot/web/contexts/socketProvider"
|
||||
|
||||
Reference in New Issue
Block a user