Skip to content

Commit 3cfaac9

Browse files
committed
fixed linting and typecheck issues
1 parent ca32eee commit 3cfaac9

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

apps/dashboard/src/components/contract-components/contract-deploy-form/sequential-token-id-fieldset.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { FormFieldSetup } from "@/components/blocks/FormFieldSetup";
22
import { FormControl } from "@chakra-ui/react";
33
import { SolidityInput } from "contract-ui/components/solidity-inputs";
44
import type { UseFormRegisterReturn } from "react-hook-form";
5-
import { FormErrorMessage, FormHelperText, FormLabel } from "tw-components";
5+
import { FormHelperText, FormLabel } from "tw-components";
66

77
interface SequentialTokenIdFieldsetProps {
88
isInvalid: boolean;
@@ -14,17 +14,20 @@ export const SequentialTokenIdFieldset: React.FC<
1414
SequentialTokenIdFieldsetProps
1515
> = (props) => {
1616
return (
17-
<FormFieldSetup label="Sequential Token ID">
17+
<FormFieldSetup
18+
htmlFor="startTokenId"
19+
label="Sequential Token ID"
20+
isRequired={true}
21+
errorMessage={props.errorMessage}
22+
>
1823
<FormControl isRequired isInvalid={props.isInvalid}>
1924
<FormLabel>Start Token ID</FormLabel>
25+
2026
<SolidityInput
2127
solidityType="uint256"
2228
variant="filled"
2329
{...props.register}
2430
/>
25-
26-
<FormErrorMessage>{props.errorMessage}</FormErrorMessage>
27-
2831
<FormHelperText className="!text-sm text-muted-foreground">
2932
The starting token ID for the NFT collection.
3033
</FormHelperText>

0 commit comments

Comments
 (0)