Skip to content

Commit

Permalink
fix: maintenance layout for build page
Browse files Browse the repository at this point in the history
  • Loading branch information
aorumbayev committed Jun 9, 2023
1 parent 3502f61 commit f0b7c8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/build.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import { useAppSelector } from '@/redux/store/hooks';
import useSWR from 'swr';
import MapList from '@/components/ImageList/MapList';
import { Link as MuiLink } from '@mui/material';
import { SITE_IS_UNDER_MAINTENANCE } from '@/common/constants';
import MaintenanceLayout from '@/components/Layouts/MaintenanceLayout';

const Build = () => {
const chain = useAppSelector((state) => state.application.chain);
Expand Down Expand Up @@ -74,7 +76,9 @@ const Build = () => {
return assets_pending_temp;
}, [assets, pendingBuildTxnNotes]);

return (
return SITE_IS_UNDER_MAINTENANCE ? (
<MaintenanceLayout />
) : (
<div>
<PageHeader
title="🛠 Build an AlgoWorld"
Expand Down

1 comment on commit f0b7c8b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for algoworld-explorer ready!

✅ Preview
https://algoworld-explorer-15hl1d3ay-algoworldexplorer.vercel.app

Built with commit f0b7c8b.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.