From 4661cb67aad828eefcde95129a6418b60e401441 Mon Sep 17 00:00:00 2001 From: Joshua T Date: Thu, 14 Oct 2021 07:14:07 +0530 Subject: [PATCH] Move `offline-notice` component to components dir (#331) --- web/{pages => components}/offline-notice.tsx | 6 +++--- web/pages/index.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename web/{pages => components}/offline-notice.tsx (96%) diff --git a/web/pages/offline-notice.tsx b/web/components/offline-notice.tsx similarity index 96% rename from web/pages/offline-notice.tsx rename to web/components/offline-notice.tsx index 484bf4ec3..c074efbe5 100644 --- a/web/pages/offline-notice.tsx +++ b/web/components/offline-notice.tsx @@ -8,9 +8,9 @@ import { import { Card, Col, Row, Typography } from 'antd'; import Link from 'next/link'; import { useContext } from 'react'; -import LogTable from '../components/log-table'; -import OwncastLogo from '../components/logo'; -import NewsFeed from '../components/news-feed'; +import LogTable from './log-table'; +import OwncastLogo from './logo'; +import NewsFeed from './news-feed'; import { ConfigDetails } from '../types/config-section'; import { ServerStatusContext } from '../utils/server-status-context'; diff --git a/web/pages/index.tsx b/web/pages/index.tsx index a5718d52c..18b53a5ef 100644 --- a/web/pages/index.tsx +++ b/web/pages/index.tsx @@ -4,7 +4,7 @@ import { UserOutlined, ClockCircleOutlined } from '@ant-design/icons'; import { formatDistanceToNow, formatRelative } from 'date-fns'; import { ServerStatusContext } from '../utils/server-status-context'; import LogTable from '../components/log-table'; -import Offline from './offline-notice'; +import Offline from '../components/offline-notice'; import { LOGS_WARN, fetchData, FETCH_INTERVAL } from '../utils/apis'; import { formatIPAddress, isEmptyObject } from '../utils/format';