Skip to content

Commit

Permalink
Build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelclapham committed Feb 19, 2024
1 parent 2b6617c commit a0bd2a4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
${{ runner.os }}-node-
- uses: actions/setup-node@v2
with:
node-version: '12'
node-version: '20'
- run: npm install
- run: npm run build
- run: sudo apt-get install tree
Expand Down
26 changes: 23 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"@types/react-dom": "^18.2.19",
"@types/react-qr-reader": "^2.1.7",
"eslint-utils": "^3.0.0",
"react-scripts": "^5.0.1"
"react-scripts": "^5.0.1",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11"
},
"scripts": {
"start": "react-scripts start",
Expand Down
2 changes: 0 additions & 2 deletions src/feature/scan-client/ScanClientModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ export const ScanClientModal: React.FC<ScanClientModalProps> = ({
onScanClient,
onCloseClick,
}) => {
const [result, setResult] = useState("");
const [manualId, setManualId] = useState("");

const handleScan = (data: string | null) => {
setResult(data || "");
onScanClient(data);
};

Expand Down

0 comments on commit a0bd2a4

Please sign in to comment.