Fix min schema ctm

This commit is contained in:
soupette 2019-08-23 16:07:34 +02:00
parent 22c58415a4
commit c1a5311e94
4 changed files with 14 additions and 6 deletions

View File

@ -7,7 +7,7 @@ const BlogPost = ({ error, isFirst, isLoading, title, content, link }) => {
return ( return (
<> <>
<LoadingBar style={{ marginBottom: 13 }} /> <LoadingBar style={{ marginBottom: 13 }} />
<LoadingBar style={{ width: '40%', marginBottom: 30 }} /> <LoadingBar style={{ width: '40%', marginBottom: 31 }} />
</> </>
); );
} }

View File

@ -205,7 +205,10 @@ const LinkWrapper = styled.a`
> p { > p {
margin: 0; margin: 0;
font-size: 13px;
&:first-child {
font-size: 16px; font-size: 16px;
}
color: #919BAE; color: #919BAE;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
@ -241,7 +244,7 @@ const SocialLinkWrapper = styled.div`
} }
span { span {
margin-left: 11px; margin-left: 11px;
width: calc(100% - 40px); width: calc(100% - 36px);
} }
&:hover { &:hover {
text-decoration: none; text-decoration: none;

View File

@ -196,7 +196,7 @@ const HomePage = ({ global: { plugins }, history: { push } }) => {
</div> </div>
<div className="col-4"> <div className="col-4">
<Block> <Block style={{ paddingRight: 30 }}>
<FormattedMessage id="HomePage.community"> <FormattedMessage id="HomePage.community">
{msg => <h2>{msg}</h2>} {msg => <h2>{msg}</h2>}
</FormattedMessage> </FormattedMessage>
@ -216,7 +216,12 @@ const HomePage = ({ global: { plugins }, history: { push } }) => {
</FormattedMessage> </FormattedMessage>
<div <div
className="row social-wrapper" className="row social-wrapper"
style={{ display: 'flex', margin: 0, marginTop: 43 }} style={{
display: 'flex',
margin: 0,
marginTop: 43,
marginLeft: -15,
}}
> >
{SOCIAL_LINKS.map((value, key) => ( {SOCIAL_LINKS.map((value, key) => (
<SocialLink key={key} {...value} /> <SocialLink key={key} {...value} />

View File

@ -133,7 +133,7 @@ const createYupSchemaAttribute = (type, validations) => {
if (type === 'email') { if (type === 'email') {
schema = schema.email(errorsTrads.email); schema = schema.email(errorsTrads.email);
} }
if (type === 'number') { if (['number', 'integer', 'biginteger', 'float', 'decimal'].includes(type)) {
schema = yup schema = yup
.number() .number()
.transform(cv => (isNaN(cv) ? undefined : cv)) .transform(cv => (isNaN(cv) ? undefined : cv))