diff --git a/CHANGELOG.md b/CHANGELOG.md index faf98cfa..c0ff9857 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Changed * [#267](https://github.com/shlinkio/shlink-web-client/issues/267) Added some subtle but important improvements on UI/UX. * [#352](https://github.com/shlinkio/shlink-web-client/issues/352) Moved from Scrutinizer to Codecov as the code coverage backend. +* [#217](https://github.com/shlinkio/shlink-web-client/issues/217) Improved how messages are displayed, by centralizing it in the `Message` and `Result` components.. ### Deprecated * *Nothing* diff --git a/src/servers/CreateServer.tsx b/src/servers/CreateServer.tsx index 7181344b..d98d3619 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 }) => ( -
Oops! Could not connect to this Shlink server.
- Make sure you have internet connection, and the server is properly configured and on-line. - > - )} -Oops! Could not connect to this Shlink server.
+ Make sure you have internet connection, and the server is properly configured and on-line. + > + )} +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 && ( -