Skip to content

Commit

Permalink
replace APP_NAME const, with VITE_APP_NAME env
Browse files Browse the repository at this point in the history
  • Loading branch information
Da-Colon committed Mar 11, 2024
1 parent 03f8151 commit 0e4602c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@
/>
<meta
property="og:title"
content={APP_NAME}
content={import.meta.env.VITE_APP_NAME}
/>
<meta
property="og:image"
content="https://app.fractalframework.xyz/images/hero_image.png"
/>
<meta
property="og:image:alt"
content={APP_NAME}
content={import.meta.env.VITE_APP_NAME}
/>
<meta
property="og:site_name"
content={APP_NAME}
content={import.meta.env.VITE_APP_NAME}
/>
<meta
name="viewport"
Expand Down
1 change: 0 additions & 1 deletion src/constants/common.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export const APP_NAME = 'Fractal';
export const HEADER_HEIGHT = '4rem';
export const CONTENT_HEIGHT = `calc(100vh - ${HEADER_HEIGHT})`;
export const BACKGROUND_SEMI_TRANSPARENT = 'black.900-semi-transparent';
Expand Down
3 changes: 1 addition & 2 deletions src/pages/DAOController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { Outlet } from 'react-router-dom';
import { useNetwork } from 'wagmi';
import { APP_NAME } from '../constants/common';
import useDAOController from '../hooks/DAO/useDAOController';
import useDAOMetadata from '../hooks/DAO/useDAOMetadata';
import { useFractal } from '../providers/App/AppProvider';
Expand Down Expand Up @@ -114,7 +113,7 @@ export default function DAOController() {
}
return (
<>
<title>{node?.daoName ? `${node.daoName} | ${APP_NAME}` : APP_NAME}</title>
<title>{node?.daoName ? `${node.daoName} | ${import.meta.env.VITE_APP_NAME}` : import.meta.env.VITE_APP_NAME}</title>
{display}
</>
);
Expand Down
3 changes: 1 addition & 2 deletions src/providers/NetworkConfig/rainbow-kit.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
import { Chain, configureChains, createConfig, createStorage } from 'wagmi';
import { hardhat, sepolia, mainnet } from 'wagmi/chains';
import { jsonRpcProvider } from 'wagmi/providers/jsonRpc';
import { APP_NAME } from '../../constants/common';
import { supportedChains } from './NetworkConfigProvider';
import { testWallet } from './testWallet';

Expand Down Expand Up @@ -44,7 +43,7 @@ export const { chains, publicClient } = configureChains(supportedWagmiChains, [
}),
]);

const defaultWallets = [injectedWallet({ chains }), coinbaseWallet({ appName: APP_NAME, chains })];
const defaultWallets = [injectedWallet({ chains }), coinbaseWallet({ appName: import.meta.env.VITE_APP_NAME, chains })];

if (import.meta.env.VITE_APP_WALLET_CONNECT_PROJECT_ID) {
defaultWallets.push(
Expand Down

0 comments on commit 0e4602c

Please sign in to comment.