Skip to content

Commit

Permalink
Revert "fix(Field): pass qa prop (#498)"
Browse files Browse the repository at this point in the history
This reverts commit 77e7ab7.
  • Loading branch information
tenphi committed Oct 7, 2024
1 parent 9d3b2e1 commit 79fee04
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .changeset/idk-new-icon-change-set.md

This file was deleted.

2 changes: 0 additions & 2 deletions src/components/forms/FieldWrapper/FieldWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ export const FieldWrapper = forwardRef(function FieldWrapper(
) {
const {
as,
qa,
labelPosition = 'top',
label,
extra,
Expand Down Expand Up @@ -158,7 +157,6 @@ export const FieldWrapper = forwardRef(function FieldWrapper(
<>
<FieldElement
ref={ref}
qa={qa}
as={as ?? 'div'}
mods={mods}
isHidden={isHidden}
Expand Down
1 change: 0 additions & 1 deletion src/components/forms/FieldWrapper/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { Props, Styles } from '../../../tasty';
// ADDING NEW PROPS TO THIS INTERFACE REQUIRES ADDING THEM TO createFieldWrapperPropsKeys FUNCTION

export type CubeFieldWrapperProps = {
qa?: string;
as?: string;
validationState?: ValidationState;
styles?: Styles;
Expand Down
2 changes: 0 additions & 2 deletions src/components/forms/wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export function wrapWithField<T extends WrapWithFieldProps>(
props: T,
) {
let {
qa,
label,
extra,
labelPosition = 'top',
Expand All @@ -39,7 +38,6 @@ export function wrapWithField<T extends WrapWithFieldProps>(
return (
<FieldWrapper
{...{
qa,
labelPosition,
label,
extra,
Expand Down

0 comments on commit 79fee04

Please sign in to comment.