fix: remove the error/success icons in <FormState />

This commit is contained in:
Divlo 2022-08-29 20:04:24 +02:00
parent 88f1cedcdc
commit c4bb7c9b17
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9
5 changed files with 16 additions and 47 deletions

View File

@ -1,10 +0,0 @@
import { render } from '@testing-library/react'
import { Header } from '.'
describe('<Header />', () => {
it('should render', () => {
const { getByText } = render(<Header />)
expect(getByText('Thream')).toBeInTheDocument()
})
})

View File

@ -27,7 +27,6 @@ export const FormState: React.FC<FormStateProps> = (props) => {
}
return (
<>
<div
{...rest}
className={classNames(
@ -39,19 +38,10 @@ export const FormState: React.FC<FormStateProps> = (props) => {
}
)}
>
<div className='thumbnail inline bg-cover font-headline' />
<div className='inline bg-cover font-headline' />
<span id={id} className='pl-2'>
<b>{t(`errors:${state}`)}:</b> {message}
</span>
</div>
<style jsx>{`
.thumbnail {
height: 20px;
width: 20px;
background-image: url('/images/svg/icons/input/${state}.svg');
}
`}</style>
</>
)
}

View File

@ -21,7 +21,7 @@
"label-checkbox-guilds": "Show the list of guilds to everyone.",
"nothing-here": "Nothing's here...",
"save": "Save",
"saved-information": "The information has been saved.",
"saved-information": "The information have been saved.",
"success-email-changed": "Please check your emails to confirm your new email address. You are now signed out.",
"delete": "Delete",
"signout": "Sign out",

View File

@ -1,7 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 22 22">
<g fill="none" fill-rule="evenodd" transform="matrix(1 0 0 -1 0 22)">
<path fill="#F95555" fill-rule="nonzero" d="M11 0C4.925 0 0 4.925 0 11s4.925 11 11 11 11-4.925 11-11S17.075 0 11 0z" />
<path fill="#FFF" fill-rule="nonzero" stroke="#FFF" stroke-width=".5" d="M9.875 7.063c0 .62.504 1.125 1.125 1.125s1.125-.504 1.125-1.126c0-.62-.504-1.125-1.125-1.125s-1.125.504-1.125 1.125z" />
<rect width="2.25" height="6.75" x="9.875" y="9.875" fill="#FFF" rx="1" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 571 B

View File

@ -1,4 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="20" height="20" preserveAspectRatio="xMidYMid meet" viewBox="0 0 36 36">
<path fill="#41ad49" d="M18 2a16 16 0 1 0 16 16A16 16 0 0 0 18 2Zm10.45 10.63L15.31 25.76L7.55 18a1.4 1.4 0 0 1 2-2l5.78 5.78l11.14-11.13a1.4 1.4 0 1 1 2 2Z" class="clr-i-solid clr-i-solid-path-1" />
<path fill="none" d="M0 0h36v36H0z" />
</svg>

Before

Width:  |  Height:  |  Size: 443 B