Skip to content

Commit

Permalink
Remove schema.title display in BAObjectFieldTemplate (#1364)
Browse files Browse the repository at this point in the history
Co-authored-by: Marek Bodinger <marek.bodinger@gmail.com>
  • Loading branch information
MarekBodingerBA and MarekBodinger authored Sep 9, 2024
1 parent 00a90cc commit deabccc
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@ const ColumnDisplay = ({
* This implementation removes `TitleFieldTemplate` and `DescriptionFieldTemplate` from the
* implementation and displays them directly.
*/
const BAObjectFieldTemplate = ({
idSchema,
properties,
schema,
uiSchema,
}: ObjectFieldTemplateProps) => {
const BAObjectFieldTemplate = ({ idSchema, properties, uiSchema }: ObjectFieldTemplateProps) => {
const options = getUiOptions(uiSchema) as ObjectFieldUiOptions
const defaultSpacing = {
wrapper: {},
Expand All @@ -67,7 +62,6 @@ const BAObjectFieldTemplate = ({
return (
<WidgetWrapper id={idSchema.$id} options={options} defaultSpacing={defaultSpacing}>
<fieldset className={fieldsetClassname} data-cy={`fieldset-${idSchema.$id}`}>
{schema.title && <h2 className="text-h2 mb-3">{schema.title}</h2>}
{options.title && <h3 className="text-h3 mb-3">{options.title}</h3>}
{options.description && (
<div className="text-p2 mb-3 whitespace-pre-wrap">
Expand Down

0 comments on commit deabccc

Please sign in to comment.