Skip to content

Commit

Permalink
Replace DOCUMENTATION with DOCUMENTATION_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLucca committed Nov 10, 2023
1 parent e37a733 commit 4b9aeaf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/constants/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/'
3 changes: 0 additions & 3 deletions src/constants/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion src/view/layout/MainDrawer/DrawerContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -41,7 +42,7 @@ const DrawerContent = ({ version, backendApiVersion }: Props) => {
>
<Typography variant="h5" mb={4}>
<Link
href={ROUTES.DOCUMENTATION}
href={DOCUMENTATION_URL}
underline="hover"
target="_blank"
rel="noopener noreferrer"
Expand Down

0 comments on commit 4b9aeaf

Please sign in to comment.