Skip to content

Commit

Permalink
fix(frontend): hide label in show record
Browse files Browse the repository at this point in the history
  • Loading branch information
cscovinopsh committed Mar 23, 2021
1 parent c13eade commit da14a50
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/frontend/components/property-type/default-type/show.tsx
@@ -1,5 +1,5 @@
import React, { ReactNode } from 'react'
import { ValueGroup } from '@admin-bro/design-system'
import { Box, Label } from '@admin-bro/design-system'

import { ShowPropertyProps } from '../base-property-props'
import DefaultPropertyValue from './default-property-value'
Expand All @@ -8,9 +8,10 @@ export default class Show extends React.PureComponent<ShowPropertyProps> {
render(): ReactNode {
const { property } = this.props
return (
<ValueGroup label={property.label}>
<Box mb="xl">
{property.hideLabel ? null : <Label variant="light">{property.label}</Label>}
<DefaultPropertyValue {...this.props} />
</ValueGroup>
</Box>
)
}
}

0 comments on commit da14a50

Please sign in to comment.