🚨 Removed linter warnings
This commit is contained in:
parent
14d8f75929
commit
803e1c0552
138 changed files with 1591 additions and 1250 deletions
|
@ -1,11 +1,5 @@
|
|||
import React, { useState } from "react";
|
||||
import PropTypes from "prop-types";
|
||||
import Pct from "./PatternOptionPercentage";
|
||||
import Deg from "./PatternOptionDegree";
|
||||
import Mm from "./PatternOptionMillimeter";
|
||||
import Bool from "./PatternOptionBool";
|
||||
import OptionGroup from "./OptionGroup";
|
||||
import { optionType } from "@freesewing/utils";
|
||||
import { FormattedMessage } from "react-intl";
|
||||
import PatternOptions from "./PatternOptions";
|
||||
import DraftSettings from "./DraftSettings";
|
||||
|
@ -13,14 +7,6 @@ import DraftSettings from "./DraftSettings";
|
|||
const DraftConfigurator = props => {
|
||||
const [expanded, setExpanded] = useState([]);
|
||||
|
||||
const toggleGroup = group => {
|
||||
let shown = expanded.slice(0);
|
||||
let index = shown.indexOf(group);
|
||||
if (index === -1) shown.push(group);
|
||||
else shown.splice(index, 1);
|
||||
setExpanded(shown);
|
||||
};
|
||||
console.log("dc props", props);
|
||||
return (
|
||||
<ul className="nav l1">
|
||||
<li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue