Skip to content

Commit 724fe49

Browse files
committed
chore: remove unused code
1 parent d8529e8 commit 724fe49

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

src/Common/RJSF/common/FieldRow.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import React from 'react'
1818
import { FieldRowProps } from './types'
19-
import { DEFAULT_FIELD_TITLE, DO_NOT_SHOW_LABEL } from '../constants'
19+
import { DEFAULT_FIELD_TITLE } from '../constants'
2020

2121
export const FieldRowWithLabel = ({
2222
showLabel,
@@ -25,9 +25,7 @@ export const FieldRowWithLabel = ({
2525
children,
2626
id,
2727
shouldAlignCenter = true,
28-
}: Omit<FieldRowProps, 'label'> & {
29-
label: FieldRowProps['label'] | typeof DO_NOT_SHOW_LABEL
30-
}) => (
28+
}: FieldRowProps) => (
3129
<div
3230
className={
3331
showLabel

src/Common/RJSF/constants.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ export const PLACEHOLDERS = {
2222

2323
export const DEFAULT_FIELD_TITLE = 'Key not available'
2424

25-
// Using symbol to ensure uniqueness across the fields
26-
export const DO_NOT_SHOW_LABEL = Symbol('Do not show label')
27-
2825
export const ADD_BUTTON_WIDTH = {
2926
MAX_WIDTH_VALUE: 250,
3027
MAX_WIDTH_CLASSNAME: 'dc__mxw-250',

src/Common/RJSF/templates/ArrayFieldTemplate.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import React from 'react'
1818
import { getTemplate, getUiOptions, ArrayFieldTemplateProps, ArrayFieldTemplateItemType } from '@rjsf/utils'
1919
import { FieldRowWithLabel } from '../common/FieldRow'
20-
import { DO_NOT_SHOW_LABEL } from '../constants'
2120

2221
const ActionButton = ({ label, canAdd, onAddClick, disabled, readonly, uiSchema, registry }) => {
2322
const {

0 commit comments

Comments
 (0)