Skip to content

Commit

Permalink
chore(Field.Option): removes unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
langz committed Jan 29, 2025
1 parent 3801d1e commit a41a069
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions packages/dnb-eufemia/src/extensions/forms/Field/Option/Option.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react'
import classnames from 'classnames'
import type { FieldProps } from '../../types'

export type Props = FieldProps<number | string> & {
Expand All @@ -9,20 +8,6 @@ export type Props = FieldProps<number | string> & {
style?: React.CSSProperties
}

export default function Option({
className,
title,
text,
children,
}: Props) {
return (
<span
className={classnames('dnb-forms-field-option', className)}
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
role="option"
>
{title ?? children}
{text}
</span>
)
export default function Option(_props: Props) {
return null
}

0 comments on commit a41a069

Please sign in to comment.