add last used to cards

This commit is contained in:
ppc
2024-08-07 22:57:54 +01:00
parent a90c407f7f
commit 06d7ae8cdf
2 changed files with 2 additions and 0 deletions
@@ -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(" ", "")
};
+1
View File
@@ -10,6 +10,7 @@ interface AimeServer {
interface AimeCard {
id: string;
name: string;
lastUsed: number;
}
const db = new Dexie('aimedb') as Dexie & {