refactor(web): remove typescript
This commit is contained in:
@@ -1,20 +1,12 @@
|
||||
import * as React from 'react';
|
||||
import type { IStep } from 'types';
|
||||
|
||||
import AppIcon from 'components/AppIcon';
|
||||
import IntermediateStepCount from 'components/IntermediateStepCount';
|
||||
|
||||
type FlowAppIconsProps = {
|
||||
steps: Partial<IStep>[];
|
||||
};
|
||||
|
||||
export default function FlowAppIcons(props: FlowAppIconsProps) {
|
||||
export default function FlowAppIcons(props) {
|
||||
const { steps } = props;
|
||||
const stepsCount = steps.length;
|
||||
const firstStep = steps[0];
|
||||
const lastStep = steps.length > 1 && steps[stepsCount - 1];
|
||||
const intermeaditeStepCount = stepsCount - 2;
|
||||
|
||||
return (
|
||||
<>
|
||||
<AppIcon
|
Reference in New Issue
Block a user