Skip to content

Commit

Permalink
omit input props
Browse files Browse the repository at this point in the history
  • Loading branch information
Cali93 committed May 10, 2022
1 parent 8cc153e commit 81c2d5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/dapp/src/components/custom/Pricing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
FormControl,
FormErrorMessage,
FormLabel,
Input,
Input
} from "@chakra-ui/react";
import { useState } from "react";
import { useFormContext } from "react-hook-form";
Expand All @@ -31,11 +31,11 @@ function PriceWrapper(props: any) {
const { children } = props;

const { style, children: inputChild, ...input } = getInputProps();
const checkbox = getCheckboxProps();
const { style: checkboxDefaultStyle, ...checkbox} = getCheckboxProps();

return (
<Box as="label">
<Input {...input} />
<input {...input} />
<Box
{...checkbox}
cursor="pointer"
Expand Down Expand Up @@ -75,7 +75,7 @@ export default function ThreeTierPricing() {
onChange: selectPlan,
});

const group = getRootProps();
const { style: groupStyle, ...group} = getRootProps();
const radioSilver = getRadioProps({ value: "SILVER" });
const radioGold = getRadioProps({ value: "GOLD" });
const radioDiamond = getRadioProps({ value: "DIAMOND" });
Expand Down
8 changes: 4 additions & 4 deletions packages/dapp/src/components/custom/quiz/CheckboxCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useCheckbox, Box, Text, Input } from "@chakra-ui/react";
import { useCheckbox, Box, Text } from "@chakra-ui/react";
import useCustomColor from "core/hooks/useCustomColor";

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

const { children } = props;
const { style, children: inputChild, ...input } = getInputProps();
const checkbox = getCheckboxProps();
const label = getLabelProps();
const { style: checkboxDefaultStyle, ...checkbox} = getCheckboxProps();
const {style: labelStyle, ...label } = getLabelProps();
return (
<Box as="label" margin="5" {...htmlProps}>
<Input {...input} />
<input {...input} />
{state.isChecked ? (
<Box
{...checkbox}
Expand Down

0 comments on commit 81c2d5f

Please sign in to comment.