Skip to content

Commit

Permalink
fix: using integer value instead of rem
Browse files Browse the repository at this point in the history
  • Loading branch information
adoucoure committed May 20, 2024
1 parent 0677a8e commit accbb1d
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions src/fields/single/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from 'react'
import { Field, ErrorMessage, FastField } from 'formik'
import { Field, FastField, ErrorMessage } from 'formik'
import componentResolver from '../componentResolver'
import { nanoid } from 'nanoid'
import LabelRenderer from '../chunks/label'
import PlatformContainer from '../../platform/container/index.native.js'
import PlatformText from '../../platform/text/index.native.js'

export default (props) => {
const { item: {
Expand Down Expand Up @@ -31,8 +32,8 @@ export default (props) => {
return <React.Fragment>
<PlatformContainer
style={{
marginBottom: "1rem",
}} >
marginBottom: 10,
}}>
<LabelRenderer {...props} />
<Renderer type={_type} name={_id} >
{({ field, form }) => {
Expand Down Expand Up @@ -73,15 +74,24 @@ export default (props) => {
paddingRight: "0.5rem",
marginTop: "0.5rem",
marginBottom: "1rem",
borderBottomRightRadius: "0.5rem",
borderBottomLeftRadius: "0.5rem"
borderBottomRightRadius: 10,
borderBottomLeftRadius: 10
}
}
>
<ErrorMessage
name={_id}
component="div"
className={"error-message"} />
render={a => <PlatformText
style={
{
color: "red",
fontSize: 12
}
}
>{a}</PlatformText>}
// className={"error-message"}

/>
</PlatformContainer>}
</PlatformContainer>
}}
Expand Down

0 comments on commit accbb1d

Please sign in to comment.