Making sure that notes default dates are the current date
This commit is contained in:
parent
06daffbd1c
commit
4ff760a0ff
|
@ -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>
|
||||||
<WptEditDialog
|
<Show when={open()}>
|
||||||
open={open}
|
<WptEditDialog
|
||||||
closeHandler={() => setOpen(false)}
|
open={open}
|
||||||
coordinate={coordinate}
|
closeHandler={() => setOpen(false)}
|
||||||
initialWpt={initialWpt}
|
coordinate={coordinate}
|
||||||
/>
|
initialWpt={initialWpt}
|
||||||
|
/>
|
||||||
|
</Show>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue