mirror of
https://github.com/siv-org/siv.git
synced 2026-01-09 10:27:57 -05:00
/malware-check: Add <TailwindPreflight/> & <Head/>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user