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