Commit 2e4b7b31 authored by isstuev's avatar isstuev

fix

parent 040cc29b
...@@ -10,7 +10,7 @@ import SwaggerUI from 'ui/apiDocs/SwaggerUI'; ...@@ -10,7 +10,7 @@ import SwaggerUI from 'ui/apiDocs/SwaggerUI';
import Page from 'ui/shared/Page/Page'; import Page from 'ui/shared/Page/Page';
import PageTitle from 'ui/shared/Page/PageTitle'; import PageTitle from 'ui/shared/Page/PageTitle';
const AppsPage: NextPage = () => { const APIDocsPage: NextPage = () => {
const networkTitle = getNetworkTitle(); const networkTitle = getNetworkTitle();
return ( return (
...@@ -22,7 +22,7 @@ const AppsPage: NextPage = () => { ...@@ -22,7 +22,7 @@ const AppsPage: NextPage = () => {
); );
}; };
export default AppsPage; export default APIDocsPage;
export const getServerSideProps: GetServerSideProps<Props> = async(args) => { export const getServerSideProps: GetServerSideProps<Props> = async(args) => {
if (!appConfig.apiDoc.specUrl) { if (!appConfig.apiDoc.specUrl) {
......
import { Spinner } from '@chakra-ui/react';
import type { NextPage } from 'next'; import type { NextPage } from 'next';
import dynamic from 'next/dynamic'; import dynamic from 'next/dynamic';
const GraphQL = dynamic(() => import('ui/graphQL/GraphQL'), { const GraphQL = dynamic(() => import('ui/graphQL/GraphQL'), {
loading: () => <Spinner/>, loading: () => <ContentLoader/>,
ssr: false, ssr: false,
}); });
import Head from 'next/head'; import Head from 'next/head';
import React from 'react'; import React from 'react';
import ContentLoader from 'ui/shared/ContentLoader';
import Page from 'ui/shared/Page/Page'; import Page from 'ui/shared/Page/Page';
import PageTitle from 'ui/shared/Page/PageTitle'; import PageTitle from 'ui/shared/Page/PageTitle';
const AppsPage: NextPage = () => { const GraphiqlPage: NextPage = () => {
return ( return (
<Page> <Page>
...@@ -22,6 +22,6 @@ const AppsPage: NextPage = () => { ...@@ -22,6 +22,6 @@ const AppsPage: NextPage = () => {
); );
}; };
export default AppsPage; export default GraphiqlPage;
export { getServerSideProps } from 'lib/next/getServerSideProps'; export { getServerSideProps } from 'lib/next/getServerSideProps';
/* eslint-disable @typescript-eslint/naming-convention */ /* eslint-disable @typescript-eslint/naming-convention */
const SwaggerUIReact = dynamic(() => import('swagger-ui-react'), { const SwaggerUIReact = dynamic(() => import('swagger-ui-react'), {
loading: () => <Spinner/>, loading: () => <ContentLoader/>,
ssr: false, ssr: false,
}); });
import { Box, Spinner, useColorModeValue } from '@chakra-ui/react'; import { Box, useColorModeValue } from '@chakra-ui/react';
import dynamic from 'next/dynamic'; import dynamic from 'next/dynamic';
import React from 'react'; import React from 'react';
import appConfig from 'configs/app/config'; import appConfig from 'configs/app/config';
import ContentLoader from 'ui/shared/ContentLoader';
import 'swagger-ui-react/swagger-ui.css'; import 'swagger-ui-react/swagger-ui.css';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment