Making sure that notes default dates are the current date

This commit is contained in:
Eric van der Vlist 2023-03-09 22:21:18 +01:00
parent 06daffbd1c
commit 4ff760a0ff
1 changed files with 9 additions and 7 deletions

View File

@ -1,5 +1,5 @@
import { IconButton } from '@suid/material';
import { Component, createSignal } from 'solid-js';
import { Component, createSignal, Show } from 'solid-js';
import { Geolocation } from '@awesome-cordova-plugins/geolocation';
import NoteIcon from '@suid/icons-material/Note';
@ -66,12 +66,14 @@ const Note: Component<Props> = (props) => {
<NoteIcon />
</IconButton>
</div>
<Show when={open()}>
<WptEditDialog
open={open}
closeHandler={() => setOpen(false)}
coordinate={coordinate}
initialWpt={initialWpt}
/>
</Show>
</>
);
};