mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-06-01 01:56:20 +00:00
Updated Result component so that it has the text centered by default
This commit is contained in:
@@ -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>
|
||||
)}
|
||||
|
||||
@@ -79,7 +79,7 @@ const EditMetaModal = (
|
||||
/>
|
||||
</FormGroup>
|
||||
{error && (
|
||||
<Result type="error" small textCentered className="mt-2">
|
||||
<Result type="error" small className="mt-2">
|
||||
Something went wrong while saving the metadata :(
|
||||
</Result>
|
||||
)}
|
||||
|
||||
@@ -35,7 +35,7 @@ const EditShortUrlModal = ({ isOpen, toggle, shortUrl, shortUrlEdition, editShor
|
||||
/>
|
||||
</FormGroup>
|
||||
{error && (
|
||||
<Result type="error" small textCentered className="mt-2">
|
||||
<Result type="error" small className="mt-2">
|
||||
Something went wrong while saving the long URL :(
|
||||
</Result>
|
||||
)}
|
||||
|
||||
@@ -33,7 +33,7 @@ const EditTagsModal = (TagsSelector: FC<TagsSelectorProps>) => (
|
||||
<ModalBody>
|
||||
<TagsSelector tags={selectedTags} onChange={setSelectedTags} />
|
||||
{shortUrlTags.error && (
|
||||
<Result type="error" small textCentered className="mt-2">
|
||||
<Result type="error" small className="mt-2">
|
||||
Something went wrong while saving the tags :(
|
||||
</Result>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user