Skip to content

Commit

Permalink
fix(form): update useNormalizedInputProps to usePrefix (#12317)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
tw15egan and kodiakhq[bot] authored Oct 19, 2022
1 parent ffb4350 commit 6a0cdf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/internal/useNormalizedInputProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

import React from 'react';
import { WarningFilled, WarningAltFilled, EditOff } from '@carbon/icons-react';

const prefix = 'cds';
import { usePrefix } from './usePrefix';

/**
* @typedef {object} InputProps
Expand Down Expand Up @@ -54,6 +53,7 @@ export function useNormalizedInputProps({
warn,
warnText,
}) {
const prefix = usePrefix();
const normalizedProps = {
disabled: !readOnly && disabled,
invalid: !readOnly && invalid,
Expand Down

0 comments on commit 6a0cdf3

Please sign in to comment.