diff --git a/src/servers/CreateServer.tsx b/src/servers/CreateServer.tsx index 7181344b..a04ccba8 100644 --- a/src/servers/CreateServer.tsx +++ b/src/servers/CreateServer.tsx @@ -1,7 +1,7 @@ import { FC } from 'react'; import { v4 as uuid } from 'uuid'; import { RouterProps } from 'react-router'; -import classNames from 'classnames'; +import { Result } from '../utils/Result'; import NoMenuLayout from '../common/NoMenuLayout'; import { StateFlagTimeout } from '../utils/helpers/hooks'; import { ServerForm } from './helpers/ServerForm'; @@ -15,19 +15,11 @@ interface CreateServerProps extends RouterProps { createServer: (server: ServerWithId) => void; } -const Result: FC<{ type: 'success' | 'error' }> = ({ children, type }) => ( -
Caution! You are about to delete a short URL.
This action cannot be undone. Once you have deleted it, all the visits stats will be lost.
+Write {shortUrl.shortCode} to confirm deletion.
setInputValue(e.target.value)} /> {hasThresholdError && ( -