Migrated to TS main services except ShlinkApiClient

This commit is contained in:
Alejandro Celaya
2020-08-29 18:51:03 +02:00
parent 64a968711c
commit ebd7a76896
6 changed files with 30 additions and 29 deletions

View File

@@ -1,7 +1,7 @@
import React, { FC, useEffect } from 'react';
import { RouteChildrenProps } from 'react-router';
import Message from '../../utils/Message';
import { isReachableServer, SelectedServer } from '../data';
import { isNotFoundServer, SelectedServer } from '../data';
interface WithSelectedServerProps extends RouteChildrenProps<{ serverId: string }> {
selectServer: (serverId: string) => void;
@@ -21,7 +21,7 @@ export const withSelectedServer = (WrappedComponent: FC<WithSelectedServerProps>
return <Message loading />;
}
if (!isReachableServer(selectedServer)) {
if (isNotFoundServer(selectedServer)) {
return <ServerError />;
}