diff --git a/.github/workflows/build/action.yml b/.github/workflows/build/action.yml index ba6ad94d7e..e9b1b583ae 100644 --- a/.github/workflows/build/action.yml +++ b/.github/workflows/build/action.yml @@ -51,6 +51,8 @@ runs: NEXT_PUBLIC_SAFE_RELAY_SERVICE_URL_PRODUCTION: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_SAFE_GELATO_RELAY_SERVICE_URL_PRODUCTION }} NEXT_PUBLIC_SAFE_RELAY_SERVICE_URL_STAGING: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_SAFE_GELATO_RELAY_SERVICE_URL_STAGING }} NEXT_PUBLIC_IS_OFFICIAL_HOST: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_IS_OFFICIAL_HOST }} + NEXT_PUBLIC_BRAND_LOGO: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_BRAND_LOGO }} + NEXT_PUBLIC_BRAND_NAME: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_BRAND_NAME }} NEXT_PUBLIC_BLOCKAID_CLIENT_ID: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_BLOCKAID_CLIENT_ID }} NEXT_PUBLIC_SOCIAL_WALLET_OPTIONS_STAGING: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_SOCIAL_WALLET_OPTIONS_STAGING }} NEXT_PUBLIC_SOCIAL_WALLET_OPTIONS_PRODUCTION: ${{ fromJSON(inputs.secrets).NEXT_PUBLIC_SOCIAL_WALLET_OPTIONS_PRODUCTION }} diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 54aed48787..66fc0c6b23 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -31,3 +31,5 @@ jobs: package-manager: yarn test-script: yarn test:ci github-token: ${{ secrets.GITHUB_TOKEN }} + env: + NEXT_PUBLIC_IS_OFFICIAL_HOST: true diff --git a/README.md b/README.md index 9daa12ad6d..aa1ff55334 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,9 @@ Here's the list of all the environment variables: | Env variable | Description | | ------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `NEXT_PUBLIC_BRAND_NAME` | The name of the app, defaults to "Wallet fork" | +| `NEXT_PUBLIC_BRAND_LOGO` | The URL of the app logo displayed in the header | + | `NEXT_PUBLIC_INFURA_TOKEN` | [Infura](https://docs.infura.io/infura/networks/ethereum/how-to/secure-a-project/project-id) RPC API token | | `NEXT_PUBLIC_SAFE_APPS_INFURA_TOKEN` | Infura token for Safe Apps, falls back to `NEXT_PUBLIC_INFURA_TOKEN` | | `NEXT_PUBLIC_IS_PRODUCTION` | Set to `true` to build a minified production app | diff --git a/src/components/address-book/ImportDialog/index.tsx b/src/components/address-book/ImportDialog/index.tsx index 13262285e7..8f7e47b390 100644 --- a/src/components/address-book/ImportDialog/index.tsx +++ b/src/components/address-book/ImportDialog/index.tsx @@ -17,7 +17,7 @@ import ErrorMessage from '@/components/tx/ErrorMessage' import { Errors, logError } from '@/services/exceptions' import FileUpload, { FileTypes, type FileInfo } from '@/components/common/FileUpload' import ExternalLink from '@/components/common/ExternalLink' -import { HelpCenterArticle } from '@/config/constants' +import { BRAND_NAME, HelpCenterArticle } from '@/config/constants' type AddressBookCSVRow = ['address', 'name', 'chainId'] @@ -152,7 +152,7 @@ const ImportDialog = ({ handleClose }: { handleClose: () => void }): ReactElemen {error && {error}} - Only CSV files exported from a {'Safe{Wallet}'} can be imported. + Only CSV files exported from a {BRAND_NAME} can be imported.
{ const router = useRouter() + const isOfficialHost = useIsOfficialHost() if (!footerPages.some((path) => router.pathname.startsWith(path))) { return null @@ -44,7 +46,7 @@ const Footer = (): ReactElement | null => { return (