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>
|
||||||
|
<Show when={open()}>
|
||||||
<WptEditDialog
|
<WptEditDialog
|
||||||
open={open}
|
open={open}
|
||||||
closeHandler={() => setOpen(false)}
|
closeHandler={() => setOpen(false)}
|
||||||
coordinate={coordinate}
|
coordinate={coordinate}
|
||||||
initialWpt={initialWpt}
|
initialWpt={initialWpt}
|
||||||
/>
|
/>
|
||||||
|
</Show>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue