From da14a50a5826d08c80a7a5a2f3a7e01a21956bed Mon Sep 17 00:00:00 2001 From: Carlos Scovino Date: Tue, 23 Mar 2021 19:45:23 -0300 Subject: [PATCH] fix(frontend): hide label in show record --- .../components/property-type/default-type/show.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/frontend/components/property-type/default-type/show.tsx b/src/frontend/components/property-type/default-type/show.tsx index 62106261b..c23181047 100644 --- a/src/frontend/components/property-type/default-type/show.tsx +++ b/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' @@ -8,9 +8,10 @@ export default class Show extends React.PureComponent { render(): ReactNode { const { property } = this.props return ( - + + {property.hideLabel ? null : } - + ) } }