From 4b9aeaf896ebd76dd057b71da2818541611b6e7c Mon Sep 17 00:00:00 2001 From: 0xLucca <0xlucca.dev@gmail.com> Date: Fri, 10 Nov 2023 12:21:32 -0300 Subject: [PATCH] Replace DOCUMENTATION with DOCUMENTATION_URL --- src/constants/config.ts | 4 ++++ src/constants/routes.ts | 3 --- src/view/layout/MainDrawer/DrawerContent.tsx | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/constants/config.ts b/src/constants/config.ts index 50208a21..aa4658d3 100644 --- a/src/constants/config.ts +++ b/src/constants/config.ts @@ -83,3 +83,7 @@ export function getBackendApiConfig(basePath: string): BackendApiConfig { export const apiBaseUrlPath = `/api` export const BACKEND_API = getBackendApiConfig(apiBaseUrlPath) + +export const DOCUMENTATION_URL = + process.env.NEXT_PUBLIC_DOCUMENTATION_URL || + 'https://contractwizard-docs.vercel.app/' diff --git a/src/constants/routes.ts b/src/constants/routes.ts index 1dde83ec..f1b5d6ef 100644 --- a/src/constants/routes.ts +++ b/src/constants/routes.ts @@ -4,9 +4,6 @@ export const ROUTES = { CONTRACTS: '/contracts', CUSTOM: '/custom-contract', CONTRACTDETAIL: '/contract-detail', - DOCUMENTATION: - process.env.NEXT_PUBLIC_DOCUMENTATION_URL || - 'https://contractwizard-docs.vercel.app/', TELEGRAM: 'https://t.me/+u5M4K7vKfbQxZjMx', GITHUB: 'https://github.com/protofire/polkadot-contract-wizard"' } as const diff --git a/src/view/layout/MainDrawer/DrawerContent.tsx b/src/view/layout/MainDrawer/DrawerContent.tsx index de82c089..1c146940 100644 --- a/src/view/layout/MainDrawer/DrawerContent.tsx +++ b/src/view/layout/MainDrawer/DrawerContent.tsx @@ -9,6 +9,7 @@ import GithubIcon from '@mui/icons-material/GitHub' import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined' import OpenInNewOutlinedIcon from '@mui/icons-material/OpenInNewOutlined' import { ROUTES } from '@/constants/routes' +import { DOCUMENTATION_URL } from '@/constants' interface Props { version: string @@ -41,7 +42,7 @@ const DrawerContent = ({ version, backendApiVersion }: Props) => { >