mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-06-02 07:59:01 +00:00
chore: format webapp files
This commit is contained in:
@@ -1,26 +1,23 @@
|
||||
// @ts-nocheck
|
||||
import React from 'react'
|
||||
import { useNProgress } from '@tanem/react-nprogress'
|
||||
import PropTypes from 'prop-types'
|
||||
import React from 'react';
|
||||
import { useNProgress } from '@tanem/react-nprogress';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import Bar from './Bar'
|
||||
import Container from './Container'
|
||||
import Bar from './Bar';
|
||||
import Container from './Container';
|
||||
|
||||
|
||||
const Progress = ({
|
||||
isAnimating,
|
||||
minimum = 0.2
|
||||
}) => {
|
||||
const Progress = ({ isAnimating, minimum = 0.2 }) => {
|
||||
const { animationDuration, isFinished, progress } = useNProgress({
|
||||
isAnimating, minimum,
|
||||
isAnimating,
|
||||
minimum,
|
||||
});
|
||||
|
||||
return (
|
||||
<Container isFinished={isFinished} animationDuration={animationDuration}>
|
||||
<Bar progress={progress} animationDuration={animationDuration} />
|
||||
</Container>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
Progress.propTypes = {
|
||||
isAnimating: PropTypes.bool.isRequired,
|
||||
|
||||
Reference in New Issue
Block a user