feat: add intermediate step count in flow apps

This commit is contained in:
Ali BARIN
2022-07-31 22:06:08 +02:00
parent 8c59bd664e
commit 82bdf9d3b1
4 changed files with 50 additions and 10 deletions

View File

@@ -0,0 +1,20 @@
import * as React from 'react';
import Typography from '@mui/material/Typography';
import { Container } from './style';
type IntermediateStepCountProps = {
count: number;
}
export default function IntermediateStepCount(props: IntermediateStepCountProps) {
const { count } = props;
return (
<Container>
<Typography variant="body2">
+{count}
</Typography>
</Container>
);
}

View File

@@ -0,0 +1,12 @@
import { styled } from '@mui/material/styles';
export const Container = styled('div')(({ theme }) => ({
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
minWidth: 50,
height: 50,
border: '1px solid #000',
borderRadius: theme.shape.borderRadius,
}));