-
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.
* feat: random quiz swiper 구현 * feat: random quiz * feat: infinite random quiz
- Loading branch information
Showing
17 changed files
with
233 additions
and
138 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,10 +1,14 @@ | ||
import RandomQuizView from '@/features/quiz/screen/random-quiz-view' | ||
import { getBookmarkedCollections } from '@/requests/collection/server' | ||
import { getDirectories } from '@/requests/directory/server' | ||
|
||
const RandomQuiz = async () => { | ||
const bookmarkedCollections = await getBookmarkedCollections() | ||
const directories = await getDirectories() | ||
|
||
return <RandomQuizView collections={bookmarkedCollections.collections} directories={[]} /> | ||
const directoriesHasDocuments = directories.directories.filter( | ||
(directory) => directory.documentCount > 0 | ||
) | ||
|
||
return <RandomQuizView directories={directoriesHasDocuments} /> | ||
} | ||
|
||
export default RandomQuiz |
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
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
Oops, something went wrong.