|
@ -39,14 +39,11 @@ function RainSharingDataScreen(props) { |
|
|
const [date, setDate] = useState(moment()); |
|
|
const [date, setDate] = useState(moment()); |
|
|
const [time, setTime] = useState(moment()); |
|
|
const [time, setTime] = useState(moment()); |
|
|
|
|
|
|
|
|
//======== testei aqui pra ver se atualiza a localização pro default quando abre o formulário ===========
|
|
|
|
|
|
|
|
|
|
|
|
const context = useContext(EventLocationContext); |
|
|
const context = useContext(EventLocationContext); |
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
context.defaultLocation(); |
|
|
context.defaultLocation(); |
|
|
}, []); |
|
|
}, []); |
|
|
//========================================================================================================
|
|
|
|
|
|
|
|
|
|
|
|
const location = context.eventCoordinates; |
|
|
const location = context.eventCoordinates; |
|
|
|
|
|
|
|
|