import React, { Component, Fragment } from 'react'; import { HashRouter, Route } from 'react-router-dom'; import PropTypes from 'prop-types'; import 'react-table/react-table.css'; import '../ui/Tabler.css'; import '../ui/ReactTable.css'; import './index.css'; import Header from '../../containers/Header'; import Dashboard from '../../containers/Dashboard'; import Settings from '../../containers/Settings'; import Filters from '../../containers/Filters'; import Logs from '../../containers/Logs'; import Footer from '../ui/Footer'; import Toasts from '../Toasts'; import Status from '../ui/Status'; class App extends Component { componentDidMount() { this.props.getDnsStatus(); } handleStatusChange = () => { this.props.enableDns(); }; render() { const { dashboard } = this.props; return (
{!dashboard.processing && !dashboard.isCoreRunning &&
} {!dashboard.processing && dashboard.isCoreRunning && }