diff --git a/app/(subpages)/ie-or-css3/page.tsx b/app/(subpages)/ie-or-css3/page.tsx index 937743a6..e72c4be1 100644 --- a/app/(subpages)/ie-or-css3/page.tsx +++ b/app/(subpages)/ie-or-css3/page.tsx @@ -1,8 +1,9 @@ import supabase from '@lib/supabase/private' import Link from '@components/link' -import IeOrCss, { UselessButton } from '@components/ie-or-css' +import { UselessButton } from '@components/ie-or-css' +import { Metadata } from 'next' -export const metadata = { +export const metadata: Metadata = { title: 'IE or CSS3?', description: 'Test your knowledge on CSS3 and Internet Explorer.', alternates: { @@ -11,7 +12,9 @@ export const metadata = { } const fetchQuestions = async () => { - const { data, error } = await supabase.from('Questions').select('id,question') + const { data, error } = await supabase + .from('Questions') + .select('id,question,isCSS') if (error || !data) { console.error(error) @@ -23,10 +26,14 @@ const fetchQuestions = async () => { } const IeQuiz = async () => { - const questions = await fetchQuestions() + const questions = (await fetchQuestions()) as { + id: string + question: string + isCSS: boolean + }[] + return ( <> - {' '}
Welcome! This quiz is inspired by the{' '}
@@ -49,7 +56,10 @@ const IeQuiz = async () => {
If you think the feature is Internet Explorer specific or was used to
target IE, click