From 4ff760a0ffb2c425e246721e84634f57acc0d91d Mon Sep 17 00:00:00 2001 From: Eric van der Vlist Date: Thu, 9 Mar 2023 22:21:18 +0100 Subject: [PATCH] Making sure that notes default dates are the current date --- src/components/note/Note.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/note/Note.tsx b/src/components/note/Note.tsx index d33c74d..079f991 100644 --- a/src/components/note/Note.tsx +++ b/src/components/note/Note.tsx @@ -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) => { - setOpen(false)} - coordinate={coordinate} - initialWpt={initialWpt} - /> + + setOpen(false)} + coordinate={coordinate} + initialWpt={initialWpt} + /> + ); };