Skip to content

Commit

Permalink
Merge pull request #903 from mapswipe/dev
Browse files Browse the repository at this point in the history
Release Community Dashboard minor changes
  • Loading branch information
thenav56 committed Aug 9, 2023
2 parents e7d3367 + 5dad0a4 commit 5a95c28
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 18 deletions.
1 change: 1 addition & 0 deletions community-dashboard/.env.example
Expand Up @@ -4,3 +4,4 @@ REACT_APP_ENVIRONMENT=

GRAPHQL_CODEGEN_ENDPOINT=
REACT_APP_GRAPHQL_ENDPOINT=
REACT_APP_MAPSWIPE_WEBSITE=
10 changes: 3 additions & 7 deletions community-dashboard/app/Base/components/Navbar/index.tsx
Expand Up @@ -2,9 +2,6 @@ import React, { useCallback } from 'react';
import { useHistory } from 'react-router-dom';
import { _cs } from '@togglecorp/fujs';

import SmartNavLink from '#base/components/SmartNavLink';
import route from '#base/configs/routes';

import mapSwipeLogo from '#resources/img/logo.svg';
import ItemSelectInput, { SearchItemType } from '#components/ItemSelectInput';

Expand All @@ -30,9 +27,8 @@ function Navbar(props: Props) {
<nav className={_cs(className, styles.navbar)}>
<div className={styles.container}>
<div className={styles.navLinks}>
<SmartNavLink
exact
route={route.home}
<a
href={process.env.REACT_APP_MAPSWIPE_WEBSITE ?? 'https://mapswipe.org'}
className={styles.link}
>
<div className={styles.appBrand}>
Expand All @@ -42,7 +38,7 @@ function Navbar(props: Props) {
alt="MapSwipe"
/>
</div>
</SmartNavLink>
</a>
</div>
<ItemSelectInput
className={styles.filter}
Expand Down
11 changes: 1 addition & 10 deletions community-dashboard/app/components/Footer/index.tsx
Expand Up @@ -58,22 +58,13 @@ function Footer() {
<div className={styles.links}>
<a
aria-label="Privacy"
href="https://mapswipe.org/en/privacy.html"
href="https://mapswipe.org/en/privacy"
target="_blank"
rel="noreferrer"
className={styles.link}
>
Privacy
</a>
<a
aria-label="Cookies"
href="https://mapswipe.org/en/cookies.html"
target="_blank"
rel="noreferrer"
className={styles.link}
>
Cookies
</a>
<span
className={styles.link}
>
Expand Down
2 changes: 1 addition & 1 deletion django/mapswipe/types.py
Expand Up @@ -26,6 +26,6 @@

GenericJSON = strawberry.scalar(
NewType("GenericJSON", JSON),
serialize=lambda v: json.loads(v) if type(v) == str else v,
serialize=lambda v: json.loads(v) if isinstance(v, str) else v,
parse_value=lambda v: v,
)
1 change: 1 addition & 0 deletions docker-compose.yaml
Expand Up @@ -155,6 +155,7 @@ services:
GRAPHQL_CODEGEN_ENDPOINT: ${COMMUNITY_DASHBOARD_GRAPHQL_CODEGEN_ENDPOINT}
REACT_APP_GRAPHQL_ENDPOINT: ${COMMUNITY_DASHBOARD_GRAPHQL_ENDPOINT}
REACT_APP_SENTRY_DSN: ${COMMUNITY_DASHBOARD_SENTRY_DSN}
REACT_APP_MAPSWIPE_WEBSITE: ${COMMUNITY_DASHBOARD_MAPSWIPE_WEBSITE:-https://mapswipe.org}
REACT_APP_SENTRY_TRACES_SAMPLE_RATE: ${COMMUNITY_DASHBOARD_SENTRY_TRACES_SAMPLE_RATE}
volumes:
- community-dashboard-static:/code/build/
Expand Down
1 change: 1 addition & 0 deletions example.env
Expand Up @@ -73,3 +73,4 @@ COMMUNITY_DASHBOARD_GRAPHQL_CODEGEN_ENDPOINT=https://api.example.com/graphql/
COMMUNITY_DASHBOARD_GRAPHQL_ENDPOINT=https://api.example.com/graphql/
COMMUNITY_DASHBOARD_SENTRY_DSN=
COMMUNITY_DASHBOARD_SENTRY_TRACES_SAMPLE_RATE=
COMMUNITY_DASHBOARD_MAPSWIPE_WEBSITE=https://mapswipe.org

0 comments on commit 5a95c28

Please sign in to comment.