demo/src/AnimationEffect.tsx
Function RenderBox
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const RenderBox = (props: Item) => {
const height = `${Math.max(props.height, MIN_DIMENSION)}px`;
const width = `${Math.max(props.width, MIN_DIMENSION)}px`;
const bgs: Array<string> = [
COLOR_WHITE,
Function AnimationEffect
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AnimationEffect(props: {
bg: typeof COLOR_PRIMARY | typeof COLOR_SECONDARY;
}) {
const [itemsFirst, setItemsFirst] = useState<Array<Item>>([]);