mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-09-26 16:18:17 +03:00
add last used to cards
This commit is contained in:
@@ -90,6 +90,7 @@ function AimeCardCreationForm(props: { callback?: () => void }) {
|
||||
|
||||
async function onSubmit(values: z.infer<typeof schema>) {
|
||||
const card: AimeCard = {
|
||||
lastUsed: 0,
|
||||
name: values.name,
|
||||
id: values.id.replaceAll(" ", "")
|
||||
};
|
||||
|
||||
@@ -10,6 +10,7 @@ interface AimeServer {
|
||||
interface AimeCard {
|
||||
id: string;
|
||||
name: string;
|
||||
lastUsed: number;
|
||||
}
|
||||
|
||||
const db = new Dexie('aimedb') as Dexie & {
|
||||
|
||||
Reference in New Issue
Block a user