refactor(multiselectcheckbox): update component name
This commit is contained in:
@ -20,7 +20,7 @@ const style = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function MultiCheckbox ({ options, onChange }) {
|
export default function MultiselectCheckbox ({ options, onChange }) {
|
||||||
const [data, setData] = React.useState(options);
|
const [data, setData] = React.useState(options);
|
||||||
|
|
||||||
function toggle (item) {
|
function toggle (item) {
|
||||||
@ -56,7 +56,7 @@ export default function MultiCheckbox ({ options, onChange }) {
|
|||||||
const options = [{ label: "Item One" }, { label: "Item Two" }];
|
const options = [{ label: "Item One" }, { label: "Item Two" }];
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<MultiCheckbox
|
<MultiselectCheckbox
|
||||||
options={options}
|
options={options}
|
||||||
onChange={data => {
|
onChange={data => {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
|||||||
Reference in New Issue
Block a user