Finish 0.2 with barcodescanner for username.
This commit is contained in:
parent
96cadc4f47
commit
4a2d45824f
3 changed files with 7 additions and 4 deletions
|
@ -4,8 +4,8 @@
|
|||
|
||||
** 0.2
|
||||
|
||||
- [-] use localStorage to store user
|
||||
- [ ] add barcode scanner to get the user
|
||||
- [X] use localStorage to store user
|
||||
- [X] add barcode scanner to get the user
|
||||
- [X] allow editing
|
||||
- [X] add UserSelect component
|
||||
- [X] integrate script for starting build qemu system
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
(chicken format))
|
||||
|
||||
;; Short banner
|
||||
(define banner-line "BrmInv 0.1 (c) 2023-2025 Brmlab, z.s.")
|
||||
(define banner-line "BrmInv 0.2 (c) 2023-2025 Brmlab, z.s.")
|
||||
|
||||
;; The license of this file and of the whole suite.
|
||||
(define license "ISC License
|
||||
|
|
|
@ -51,7 +51,10 @@ function NoUserView({setUser}) {
|
|||
<Card.Text>
|
||||
<BarcodeScannerComponent
|
||||
style={{width: 'auto', height: 'auto'}}
|
||||
onUpdate={() => console.log("scanned")}
|
||||
onUpdate={(err, result) => {
|
||||
if (result) {
|
||||
setPreUser(result.text);
|
||||
}}}
|
||||
delay={1500}
|
||||
/>
|
||||
</Card.Text>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue