Skip to content

Commit

Permalink
wouldn't build; fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Situs84 committed Feb 19, 2024
1 parent 470d6b5 commit 0f31cf5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/app.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { useMemo, useState } from 'preact/hooks';
import { useMemo, /*useState*/ } from 'preact/hooks';
import { Logo } from './components/Logo';
import QRModal from './components/QRModal';
import Section from './components/Section';
import Button, { Variant } from './components/core/Button';
// import Button, { Variant } from './components/core/Button';
import {
getQRCodeData,
resetSections,
resetToDefaultConfig,
// resetToDefaultConfig,
uploadConfig,
useQRScoutState,
} from './store/store';
Expand Down
6 changes: 4 additions & 2 deletions src/components/QRModal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @ts-nocheck

import QRCode from 'qrcode.react';

export interface QRModalProps {
Expand All @@ -12,7 +14,7 @@ export default function QRModal(props: QRModalProps) {
<button
className={"btn btn-primary text-primary-content " + (!props.isEnabled ? "btn-disabled" : "") }
type="button"
onClick={(props.isEnabled ? ()=>document.getElementById('DataModal').showModal() : ()=>{})}
onClick={(props.isEnabled ? ()=>document.getElementById('DataModal')!.showModal() : ()=>{})}
>
COMMIT
</button>
Expand All @@ -34,7 +36,7 @@ export default function QRModal(props: QRModalProps) {
<button
className="btn btn-error text-error-content"
type="button"
onClick={()=>document.getElementById('DataModal').close()}
onClick={()=>document.getElementById('DataModal')!.close()}
>
Close
</button>
Expand Down
4 changes: 2 additions & 2 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ body {
overscroll-behavior: contain;
}

@font-face {
/* @font-face {
font-family: 'SF Sports Night';
src: url('/fonts/SF Sports Night.ttf');
}
Expand All @@ -19,4 +19,4 @@ body {
@font-face {
font-family: "Inter";
src: url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap')
}
} */

0 comments on commit 0f31cf5

Please sign in to comment.