Skip to content

Commit

Permalink
Remove unused class name
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSmedinga committed Nov 5, 2024
1 parent 0dfa88b commit 747ef9e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/react/src/SearchField/SearchFieldButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*/

import { SearchIcon } from '@amsterdam/design-system-react-icons'
import clsx from 'clsx'
import { forwardRef } from 'react'
import type { ForwardedRef } from 'react'
import { Button } from '../Button'
Expand All @@ -13,14 +12,8 @@ import type { ButtonProps } from '../Button'
type SearchFieldButtonProps = Omit<ButtonProps, 'icon' | 'iconPosition' | 'variant'>

export const SearchFieldButton = forwardRef(
({ className, children = 'Zoeken', ...restProps }: SearchFieldButtonProps, ref: ForwardedRef<HTMLButtonElement>) => (
<Button
{...restProps}
className={clsx('ams-search-field__button', className)}
icon={SearchIcon}
iconBefore
ref={ref}
>
({ children = 'Zoeken', ...restProps }: SearchFieldButtonProps, ref: ForwardedRef<HTMLButtonElement>) => (
<Button {...restProps} icon={SearchIcon} iconBefore ref={ref}>
{children}
</Button>
),
Expand Down

0 comments on commit 747ef9e

Please sign in to comment.