File tree Expand file tree Collapse file tree 6 files changed +8
-18
lines changed
Expand file tree Collapse file tree 6 files changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ REACT_APP_ENVIRONMENT=
44
55GRAPHQL_CODEGEN_ENDPOINT =
66REACT_APP_GRAPHQL_ENDPOINT =
7+ REACT_APP_MAPSWIPE_WEBSITE =
Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ import React, { useCallback } from 'react';
22import { useHistory } from 'react-router-dom' ;
33import { _cs } from '@togglecorp/fujs' ;
44
5- import SmartNavLink from '#base/components/SmartNavLink' ;
6- import route from '#base/configs/routes' ;
7-
85import mapSwipeLogo from '#resources/img/logo.svg' ;
96import ItemSelectInput , { SearchItemType } from '#components/ItemSelectInput' ;
107
@@ -30,9 +27,8 @@ function Navbar(props: Props) {
3027 < nav className = { _cs ( className , styles . navbar ) } >
3128 < div className = { styles . container } >
3229 < div className = { styles . navLinks } >
33- < SmartNavLink
34- exact
35- route = { route . home }
30+ < a
31+ href = { process . env . REACT_APP_MAPSWIPE_WEBSITE ?? 'https://mapswipe.org' }
3632 className = { styles . link }
3733 >
3834 < div className = { styles . appBrand } >
@@ -42,7 +38,7 @@ function Navbar(props: Props) {
4238 alt = "MapSwipe"
4339 />
4440 </ div >
45- </ SmartNavLink >
41+ </ a >
4642 </ div >
4743 < ItemSelectInput
4844 className = { styles . filter }
Original file line number Diff line number Diff line change @@ -58,22 +58,13 @@ function Footer() {
5858 < div className = { styles . links } >
5959 < a
6060 aria-label = "Privacy"
61- href = "https://mapswipe.org/en/privacy.html "
61+ href = "https://mapswipe.org/en/privacy"
6262 target = "_blank"
6363 rel = "noreferrer"
6464 className = { styles . link }
6565 >
6666 Privacy
6767 </ a >
68- < a
69- aria-label = "Cookies"
70- href = "https://mapswipe.org/en/cookies.html"
71- target = "_blank"
72- rel = "noreferrer"
73- className = { styles . link }
74- >
75- Cookies
76- </ a >
7768 < span
7869 className = { styles . link }
7970 >
Original file line number Diff line number Diff line change 2626
2727GenericJSON = strawberry .scalar (
2828 NewType ("GenericJSON" , JSON ),
29- serialize = lambda v : json .loads (v ) if type ( v ) == str else v ,
29+ serialize = lambda v : json .loads (v ) if isinstance ( v , str ) else v ,
3030 parse_value = lambda v : v ,
3131)
Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ services:
155155 GRAPHQL_CODEGEN_ENDPOINT : ${COMMUNITY_DASHBOARD_GRAPHQL_CODEGEN_ENDPOINT}
156156 REACT_APP_GRAPHQL_ENDPOINT : ${COMMUNITY_DASHBOARD_GRAPHQL_ENDPOINT}
157157 REACT_APP_SENTRY_DSN : ${COMMUNITY_DASHBOARD_SENTRY_DSN}
158+ REACT_APP_MAPSWIPE_WEBSITE : ${COMMUNITY_DASHBOARD_MAPSWIPE_WEBSITE:-https://mapswipe.org}
158159 REACT_APP_SENTRY_TRACES_SAMPLE_RATE : ${COMMUNITY_DASHBOARD_SENTRY_TRACES_SAMPLE_RATE}
159160 volumes :
160161 - community-dashboard-static:/code/build/
Original file line number Diff line number Diff line change @@ -73,3 +73,4 @@ COMMUNITY_DASHBOARD_GRAPHQL_CODEGEN_ENDPOINT=https://api.example.com/graphql/
7373COMMUNITY_DASHBOARD_GRAPHQL_ENDPOINT = https://api.example.com/graphql/
7474COMMUNITY_DASHBOARD_SENTRY_DSN =
7575COMMUNITY_DASHBOARD_SENTRY_TRACES_SAMPLE_RATE =
76+ COMMUNITY_DASHBOARD_MAPSWIPE_WEBSITE = https://mapswipe.org
You can’t perform that action at this time.
0 commit comments