/malware-check: Add <TailwindPreflight/> & <Head/>

This commit is contained in:
David Ernst
2025-12-27 01:03:24 -08:00
parent cde69e02cf
commit 437c62d65f

View File

@@ -4,8 +4,10 @@ import { api } from 'src/api-helper'
import { RP, stringToPoint } from 'src/crypto/curve'
import encrypt from 'src/crypto/encrypt'
import { CipherStrings } from 'src/crypto/stringify-shuffle'
import { Head } from 'src/Head'
import { unTruncateSelection } from 'src/status/un-truncate-selection'
import { useElectionInfo } from 'src/status/use-election-info'
import { TailwindPreflight } from 'src/TailwindPreflight'
import { generateColumnNames } from 'src/vote/generateColumnNames'
import { base64URLToBigint } from 'src/vote/submitted/base64url'
import { decodePlaintext } from 'src/vote/submitted/encodePlaintext'
@@ -23,6 +25,16 @@ type VoteData = {
}
export function MalwareCheckPage() {
return (
<div className="p-8 mx-auto max-w-2xl">
<Head title="Malware Check" />
<PageContent />
<TailwindPreflight />
</div>
)
}
function PageContent() {
const router = useRouter()
const { auth_token, election_id } = router.query
const [voteData, setVoteData] = useState<null | VoteData>(null)