enable add/remove homie

This commit is contained in:
Bilal
2020-09-12 01:17:52 +03:00
parent 3acb5fedf4
commit 2a5ffac5b9
6 changed files with 213 additions and 9 deletions

View File

@@ -3,6 +3,7 @@ import axios from "axios";
import { Table, Collapsible, CollapsibleItem, Button, TextInput, Row, Col, Select } from "react-materialize";
import M from "materialize-css";
import YesNoModal from "../common/YesNoModal";
import { errorToast } from "../common/errorHelpers";
const ListChips = (props) => {
const [chipsList, setChipsList] = useState([]);
@@ -114,10 +115,6 @@ const ListChips = (props) => {
}
}
const errorToast = () => M.toast({ html: "Yo! It ain't workin'" });
const getChipData = (chipId) => chipsList.find(chip => chip.id === chipId);
const checkIfPairExists = (baseChipId, secondaryChipId) => {