Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
SocialGouv
1000jours
les1000jours
Commits
3c55e0ce
Unverified
Commit
3c55e0ce
authored
Jul 21, 2021
by
benguedj
Committed by
GitHub
Jul 21, 2021
Browse files
fix:
🐛
Corrige le loader sur la carto (access GPS : refused) (#544)
✅
Closes: #540
parent
7827f6f2
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
4 deletions
+1
-4
front/components/aroundMe/fetchPoisCoords.component.tsx
front/components/aroundMe/fetchPoisCoords.component.tsx
+0
-3
front/screens/aroundMe/searchByPostalCode.component.tsx
front/screens/aroundMe/searchByPostalCode.component.tsx
+1
-0
front/screens/aroundMe/tabAroundMeScreen.component.tsx
front/screens/aroundMe/tabAroundMeScreen.component.tsx
+0
-1
No files found.
front/components/aroundMe/fetchPoisCoords.component.tsx
View file @
3c55e0ce
...
...
@@ -17,7 +17,6 @@ interface Props {
postalCode
:
string
;
region
:
Region
;
setFetchedPois
:
(
pois
:
CartographiePoisFromDB
[])
=>
void
;
setIsLoading
:
(
value
:
boolean
)
=>
void
;
chooseFilterMessage
:
()
=>
void
;
searchIsReady
:
boolean
;
}
...
...
@@ -27,7 +26,6 @@ const FetchPoisCoords: React.FC<Props> = ({
triggerSearchByGpsCoords
,
region
,
setFetchedPois
,
setIsLoading
,
chooseFilterMessage
,
searchIsReady
,
})
=>
{
...
...
@@ -94,7 +92,6 @@ const FetchPoisCoords: React.FC<Props> = ({
useEffect
(()
=>
{
if
(
!
searchIsReady
)
{
setIsLoading
(
false
);
return
;
}
void
searchByGPSCoords
();
...
...
front/screens/aroundMe/searchByPostalCode.component.tsx
View file @
3c55e0ce
...
...
@@ -57,6 +57,7 @@ const SearchByPostalCode: React.FC<Props> = ({
const
{
status
}
=
await
Location
.
requestForegroundPermissionsAsync
();
if
(
status
!==
Location
.
PermissionStatus
.
GRANTED
)
{
showSnackBarWithMessage
(
Labels
.
aroundMe
.
pleaseAllowGeolocation
);
setIsLoading
(
false
);
return
;
}
...
...
front/screens/aroundMe/tabAroundMeScreen.component.tsx
View file @
3c55e0ce
...
...
@@ -199,7 +199,6 @@ const TabAroundMeScreen: React.FC = () => {
postalCode
=
{
postalCodeInput
}
region
=
{
region
}
setFetchedPois
=
{
handleFetchedPois
}
setIsLoading
=
{
setIsLoading
}
chooseFilterMessage
=
{
()
=>
{
setTimeout
(
()
=>
{
...
...
Social Groovy Bot
🤖
@SocialGroovyBot
mentioned in commit
b5922206
·
Jul 21, 2021
mentioned in commit
b5922206
mentioned in commit b59222065ed01f1a3f38916b14b1d17618e66cb2
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment