Browse Source

Move `offline-notice` component to components dir (#331)

pull/1886/head
Joshua T 5 years ago committed by GitHub
parent
commit
4661cb67aa
  1. 6
      web/components/offline-notice.tsx
  2. 2
      web/pages/index.tsx

6
web/pages/offline-notice.tsx → web/components/offline-notice.tsx

@ -8,9 +8,9 @@ import { @@ -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';

2
web/pages/index.tsx

@ -4,7 +4,7 @@ import { UserOutlined, ClockCircleOutlined } from '@ant-design/icons'; @@ -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';

Loading…
Cancel
Save