Skip to content

Commit 81c2d5f

Browse files
committed
omit input props
1 parent 8cc153e commit 81c2d5f

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

packages/dapp/src/components/custom/Pricing.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
FormControl,
1616
FormErrorMessage,
1717
FormLabel,
18-
Input,
18+
Input
1919
} from "@chakra-ui/react";
2020
import { useState } from "react";
2121
import { useFormContext } from "react-hook-form";
@@ -31,11 +31,11 @@ function PriceWrapper(props: any) {
3131
const { children } = props;
3232

3333
const { style, children: inputChild, ...input } = getInputProps();
34-
const checkbox = getCheckboxProps();
34+
const { style: checkboxDefaultStyle, ...checkbox} = getCheckboxProps();
3535

3636
return (
3737
<Box as="label">
38-
<Input {...input} />
38+
<input {...input} />
3939
<Box
4040
{...checkbox}
4141
cursor="pointer"
@@ -75,7 +75,7 @@ export default function ThreeTierPricing() {
7575
onChange: selectPlan,
7676
});
7777

78-
const group = getRootProps();
78+
const { style: groupStyle, ...group} = getRootProps();
7979
const radioSilver = getRadioProps({ value: "SILVER" });
8080
const radioGold = getRadioProps({ value: "GOLD" });
8181
const radioDiamond = getRadioProps({ value: "DIAMOND" });

packages/dapp/src/components/custom/quiz/CheckboxCard.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useCheckbox, Box, Text, Input } from "@chakra-ui/react";
1+
import { useCheckbox, Box, Text } from "@chakra-ui/react";
22
import useCustomColor from "core/hooks/useCustomColor";
33

44
const CheckboxCard = (props: any) => {
@@ -8,11 +8,11 @@ const CheckboxCard = (props: any) => {
88

99
const { children } = props;
1010
const { style, children: inputChild, ...input } = getInputProps();
11-
const checkbox = getCheckboxProps();
12-
const label = getLabelProps();
11+
const { style: checkboxDefaultStyle, ...checkbox} = getCheckboxProps();
12+
const {style: labelStyle, ...label } = getLabelProps();
1313
return (
1414
<Box as="label" margin="5" {...htmlProps}>
15-
<Input {...input} />
15+
<input {...input} />
1616
{state.isChecked ? (
1717
<Box
1818
{...checkbox}

0 commit comments

Comments
 (0)