Skip to content

Commit

Permalink
fix: extended interface
Browse files Browse the repository at this point in the history
  • Loading branch information
riddhybansal committed Sep 17, 2024
1 parent 37e07ab commit 94e7a65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import FluidTextInput from '../FluidTextInput';
import FluidTextInput, { FluidTextInputProps } from '../FluidTextInput';
import { usePrefix } from '../../internal/usePrefix';
import { WarningFilled, WarningAltFilled } from '@carbon/icons-react';

export interface FluidTimePickerProps {
export interface FluidTimePickerProps extends FluidTextInputProps {
/**
* The child node(s)
*/
Expand Down Expand Up @@ -96,7 +96,7 @@ const FluidTimePicker = React.forwardRef<
<div className={classNames}>
<div className={`${prefix}--time-picker--fluid__wrapper`}>
<div className={`${prefix}--time-picker__input`}>
<FluidTextInput id="" disabled={disabled} ref={ref} {...other} />
<FluidTextInput ref={ref} {...other} />
</div>
{disabled
? React.Children.toArray(children).map((child) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import FluidTimePickerSelect from './FluidTimePickerSelect';
import { FluidTimePickerSelectProps } from './FluidTimePickerSelect';
import { type FluidTimePickerSelectProps } from './FluidTimePickerSelect';
export { type FluidTimePickerSelectProps };
export default FluidTimePickerSelect;
export { FluidTimePickerSelect };

0 comments on commit 94e7a65

Please sign in to comment.