Skip to content

Commit

Permalink
chore: update with latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Feb 26, 2024
1 parent 72641f4 commit 6b9e088
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"test:watch": "yarn test --watch --reporter=dot",
"coverage": "nyc yarn test --reporter=dot",
"coverage:watch": "npx nodemon -e js,mjs,ts --exec yarn coverage",
"website:start": "yarn build && yarn workspace @figma-export/website dev",
"website:build": "yarn build && yarn workspace @figma-export/website build-only",
"website:serve": "yarn workspace @figma-export/website start",
"website:dev": "yarn build && yarn workspace @figma-export/website dev",
"website:build": "yarn build && yarn workspace @figma-export/website build",
"website:start": "yarn workspace @figma-export/website start",
"upgrade:major": "npx npm-check-updates -ws --root -u",
"upgrade:minor": "yarn upgrade:major --target minor",
"ls-engines": "yarn dlx ls-engines",
Expand Down
1 change: 0 additions & 1 deletion packages/website/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
const nextConfig = {
// https://nextjs.org/docs/api-reference/next.config.js/react-strict-mode
reactStrictMode: true,
output: 'export',
distDir: 'dist'
}

Expand Down
5 changes: 2 additions & 3 deletions packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@
"next:lint": "next lint",
"next:dev": "next dev",
"next:build": "next build",
"next:export": "next export -o dist/",
"next:start": "next start",
"dev": "run-s export next:dev",
"build-only": "run-s clean export next:build",
"build": "run-s clean export next:build next:export",
"build": "run-s clean export next:build",
"start": "run-s next:start"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/website/pages/auth/success.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useEffect, useRef, useState } from 'react'
export default function HomePage() {
const [pin, setPin] = useState<number>(NaN)
const [timer, setTimer] = useState<number>(30)
const interval = useRef<NodeJS.Timer>()
const interval = useRef<number>()

useEffect(function handleTimer() {
if (interval.current == null && !isNaN(pin)) {
Expand All @@ -17,6 +17,7 @@ export default function HomePage() {
setTimer(Math.round((endTime - Date.now()) / 1000))
}

/** @ts-expect-error Interval is a number */
interval.current = setInterval(() => setTimer((t) => t - 1), 1000);
}

Expand Down

0 comments on commit 6b9e088

Please sign in to comment.