Skip to content

Commit a38db32

Browse files
committed
changed functional component tyoe
1 parent a6c0d6a commit a38db32

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/bubble/bubble.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import React, {ReactElement} from "react";
1+
import React, { FC } from "react";
22
import { IBubbleProps } from "./types";
33
import whiteTick from '../assets/white-tick.svg';
44
import { STEP_STATUSES } from './constants';
55
import styles from './styles';
6-
const Bubble = (props: IBubbleProps): ReactElement => {
6+
const Bubble: FC<IBubbleProps> = (props) => {
77
const {
88
step,
99
enableStepClick,

src/stepper-component/stepperComponent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import React, { useState, useEffect, ReactElement } from 'react';
1+
import React, { useState, useEffect, ReactElement, FC } from 'react';
22
import styles from './styles';
33
import { IStep, IStepperProps } from './types';
44
import Bubble from '../bubble';
55

6-
const Stepper = (props: IStepperProps): ReactElement => {
6+
const Stepper: FC<IStepperProps> = (props) => {
77
const {
88
steps,
99
currentActiveStepIndex,

0 commit comments

Comments
 (0)