Skip to content

Commit

Permalink
lint(PairActivity): fix type issues (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam authored Jan 31, 2025
1 parent 35ea895 commit 877d796
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/dashboard/activities/PairActivity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import TopAppBar from '~/components/material/TopAppBar'
import './PairActivity.css'

const PairActivity: VoidComponent = () => {
const { pair: pairToken } = useLocation().query
const { pair } = useLocation().query
const pairToken: string | undefined = pair instanceof Array ? pair[0] : pair

const state = createMachine<{
scanning: {
Expand All @@ -36,7 +37,7 @@ const PairActivity: VoidComponent = () => {
} : 'scanning',
states: {
scanning(_input, to) {
let videoRef: HTMLVideoElement
let videoRef!: HTMLVideoElement
let qrScanner: QrScanner

onMount(() => {
Expand All @@ -61,7 +62,7 @@ const PairActivity: VoidComponent = () => {

return (
<div id="video-container" class="fixed inset-0 bg-black text-white">
<video class="absolute inset-0 size-full object-cover" ref={videoRef!} />
<video class="absolute inset-0 size-full object-cover" ref={videoRef} />
<div class="prose absolute inset-0 flex flex-col justify-between pb-7">
<TopAppBar trailing={<IconButton href="/">close</IconButton>}>
Add new device
Expand Down

0 comments on commit 877d796

Please sign in to comment.