Skip to content

Commit

Permalink
more removal of default exports
Browse files Browse the repository at this point in the history
  • Loading branch information
peebeejay committed Aug 10, 2021
1 parent 3862a1f commit 4b7c7ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/react/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { Background } from './colors';
import { Deposit } from './components/Deposit';
import { Home } from './components/Home';
import { InstallFailed } from './components/InstallFailed';
import Installing from './components/Installing';
import Status from './components/Status';
import { Installing } from './components/Installing';
import { StatusPage as Status } from './components/Status';
import { SystemCheck } from './components/SystemCheck';

const Container = styled.main`
Expand Down
6 changes: 2 additions & 4 deletions src/react/components/Installing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const LogsListItem = styled.li`

const LogsContainerAnchor = styled.div``;

const Installing = ({ history }: { history: History }) => {
export const Installing = withRouter(({ history }: { history: History }) => {
const anchorRef = useRef(document.createElement('div'));

const [stdoutText, setStdoutText] = useState(['']);
Expand Down Expand Up @@ -139,6 +139,4 @@ const Installing = ({ history }: { history: History }) => {
</Content>
</Container>
);
};

export default withRouter(Installing);
});
4 changes: 1 addition & 3 deletions src/react/components/Status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const LogsButton = styled.button`
// TODO: right after install, while nodes are starting up, this page says everything is "online"
// while things are looking for peers. Need to improve that logic.

const StatusPage = () => {
export const StatusPage = () => {
const [eth1ContainerStatus, setEth1ContainerStatus] = useState<Status>(
Status.Loading,
);
Expand Down Expand Up @@ -378,5 +378,3 @@ const StatusPage = () => {
</Container>
);
};

export default StatusPage;

0 comments on commit 4b7c7ff

Please sign in to comment.