generate valid access codes on web

This commit is contained in:
ppc
2025-01-14 23:30:04 +00:00
parent e83287c7b7
commit 29b303cde8
2 changed files with 7 additions and 3 deletions
+5
View File
@@ -56,7 +56,12 @@
},
"../amnet-shared": {
"version": "1.0.0",
"dependencies": {
"big-integer": "^1.6.52",
"lodash": "^4.17.21"
},
"devDependencies": {
"@types/lodash": "^4.17.14",
"tsup": "^8.2.4",
"typescript": "^5.5.4"
}
@@ -98,10 +98,9 @@ function AimeCardCreationForm(props: { callback?: () => void }) {
<FormControl>
<Input placeholder="0000 0000 0000 0000 0000" {...field} />
</FormControl>
<FormDescription>
<FormDescription className="select-none">
If you&apos;ve got a card, enter the matrix code here. If not, you can
<span className="font-bold hover:cursor-pointer ml-1"
onClick={() => form.setValue("id", generateCardNumber())}>
<span className="font-bold hover:cursor-pointer ml-1" onClick={() => form.setValue("id", generateCardNumber())}>
generate a new one.
</span>
</FormDescription>