-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #708 from wri/release/tacky-teak
[RELEASE] Tacky Teak
- Loading branch information
Showing
77 changed files
with
4,256 additions
and
1,126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
# Local dev configuration | ||
NEXT_PUBLIC_API_BASE_URL='http://localhost:8080' | ||
NEXT_PUBLIC_USER_SERVICE_URL='http://localhost:4010' | ||
NEXT_PUBLIC_JOB_SERVICE_URL='http://localhost:4020' | ||
|
||
# Accessing staging instead of local BE | ||
NEXT_PUBLIC_API_BASE_URL='https://api-staging.terramatch.org' | ||
|
||
NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN = | ||
# Valid values are "local", "dev", "test", "staging", "prod" | ||
NEXT_PUBLIC_TARGET_ENV = "local" | ||
|
||
# Get these two values securely from another dev or from Transifex directly. | ||
TRANSIFEX_TOKEN = | ||
TRANSIFEX_SECRET = | ||
TRANSIFEX_TRANSLATIONS_TTL_SEC = 10 | ||
|
||
NEXT_PUBLIC_GEOSERVER_URL = | ||
NEXT_PUBLIC_GEOSERVER_WORKSPACE = | ||
|
||
IMAGE_DOMAINS = 'localhost,wri.s3.us-west-2.amazonaws.com,s3-eu-west-1.amazonaws.com' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
process.env.NODE_ENV = "test"; | ||
process.env.NEXT_PUBLIC_API_BASE_URL = "https://new-wri-staging.wri-restoration-marketplace-api.com"; | ||
process.env.NEXT_PUBLIC_API_BASE_URL = "https://api-staging.terramatch.org"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import DownloadIcon from "@mui/icons-material/GetApp"; | ||
import { Button, CreateButton, FilterButton, TopToolbar } from "react-admin"; | ||
import { When } from "react-if"; | ||
|
||
interface ListActionsCreateFilterProps { | ||
isSuperAdmin?: boolean; | ||
onExport?: () => void; | ||
} | ||
|
||
const ListActionsCreateFilter = ({ isSuperAdmin, onExport }: ListActionsCreateFilterProps) => ( | ||
<TopToolbar> | ||
<When condition={isSuperAdmin}> | ||
<CreateButton className="filter-button-page-admin" /> | ||
</When> | ||
<FilterButton className="filter-button-page-admin" /> | ||
<When condition={!!onExport}> | ||
<Button className="button-page-admin" label="Export" startIcon={<DownloadIcon />} onClick={onExport} /> | ||
</When> | ||
</TopToolbar> | ||
); | ||
|
||
export default ListActionsCreateFilter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.