Skip to content

Commit

Permalink
Add caskStrength and singleCask to BottleForm
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Aug 6, 2024
1 parent cfe3701 commit 0c1df8e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions apps/web/src/components/bottleForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import { Controller, useForm } from "react-hook-form";
import type { z } from "zod";
import useAuth from "../hooks/useAuth";
import { isTRPCClientError, trpc } from "../lib/trpc/client";
import BooleanField from "./booleanField";
import Button from "./button";
import Collapsable from "./collapsable";
import { classesForProfile } from "./flavorProfile";
Expand Down Expand Up @@ -351,6 +352,20 @@ export default function BottleForm({
onCollapse={() => setShowCaskDetails(!showCaskDetails)}
/>
<Collapsable open={showCaskDetails}>
<BooleanField
control={control}
label="Single Cask"
helpText="Is this spirit bottled from a single cask?"
name="singleCask"
/>

<BooleanField
control={control}
label="Cask Strength"
helpText="Is this spirit bottled at Cask Strength, usually ranging from 60-65% abv?"
name="caskStrength"
/>

<Controller
name="caskFill"
control={control}
Expand Down

0 comments on commit 0c1df8e

Please sign in to comment.