fix: remove the error/success icons in <FormState />
This commit is contained in:
parent
88f1cedcdc
commit
c4bb7c9b17
@ -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()
|
|
||||||
})
|
|
||||||
})
|
|
@ -27,7 +27,6 @@ export const FormState: React.FC<FormStateProps> = (props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
|
||||||
<div
|
<div
|
||||||
{...rest}
|
{...rest}
|
||||||
className={classNames(
|
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'>
|
<span id={id} className='pl-2'>
|
||||||
<b>{t(`errors:${state}`)}:</b> {message}
|
<b>{t(`errors:${state}`)}:</b> {message}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style jsx>{`
|
|
||||||
.thumbnail {
|
|
||||||
height: 20px;
|
|
||||||
width: 20px;
|
|
||||||
background-image: url('/images/svg/icons/input/${state}.svg');
|
|
||||||
}
|
|
||||||
`}</style>
|
|
||||||
</>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
"label-checkbox-guilds": "Show the list of guilds to everyone.",
|
"label-checkbox-guilds": "Show the list of guilds to everyone.",
|
||||||
"nothing-here": "Nothing's here...",
|
"nothing-here": "Nothing's here...",
|
||||||
"save": "Save",
|
"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.",
|
"success-email-changed": "Please check your emails to confirm your new email address. You are now signed out.",
|
||||||
"delete": "Delete",
|
"delete": "Delete",
|
||||||
"signout": "Sign out",
|
"signout": "Sign out",
|
||||||
|
@ -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 |
@ -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 |
Reference in New Issue
Block a user