mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-05-07 20:23:06 +03:00
Updated Result component so that it has the text centered by default
This commit is contained in:
parent
b211a29fc5
commit
344f5e9b0d
8 changed files with 10 additions and 12 deletions
src/short-urls/helpers
|
@ -54,13 +54,13 @@ const DeleteShortUrlModal = (
|
|||
/>
|
||||
|
||||
{hasThresholdError && (
|
||||
<Result type="warning" textCentered small className="mt-2">
|
||||
<Result type="warning" small className="mt-2">
|
||||
{errorData?.threshold && `This short URL has received more than ${errorData.threshold} visits, and therefore, it cannot be deleted.`}
|
||||
{!errorData?.threshold && 'This short URL has received too many visits, and therefore, it cannot be deleted.'}
|
||||
</Result>
|
||||
)}
|
||||
{hasErrorOtherThanThreshold && (
|
||||
<Result type="error" textCentered small className="mt-2">
|
||||
<Result type="error" small className="mt-2">
|
||||
Something went wrong while deleting the URL :(
|
||||
</Result>
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue