Updated Result component so that it has the text centered by default

This commit is contained in:
Alejandro Celaya
2020-12-21 17:58:46 +01:00
parent b211a29fc5
commit 344f5e9b0d
8 changed files with 10 additions and 12 deletions

View File

@@ -16,7 +16,7 @@ interface CreateServerProps extends RouterProps {
}
const ImportResult = ({ type }: { type: 'error' | 'success' }) => (
<Result type={type} textCentered>
<Result type={type}>
{type === 'success' && 'Servers properly imported. You can now select one from the list :)'}
{type === 'error' && 'The servers could not be imported. Make sure the format is correct.'}
</Result>