Skip to content

Commit

Permalink
Fix code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreasgdp committed Oct 20, 2023
1 parent 838b0fd commit 6730fcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/forms/recipe/RecipeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ interface RecipeFormProps {
onSubmit: (data: RecipeFormInput) => Promise<void>;
}

export function RecipeForm({ initialData, onSubmit }: RecipeFormProps) {
export function RecipeForm({
initialData,
onSubmit,
}: Readonly<RecipeFormProps>) {
const [isPending, startTransition] = React.useTransition();

// react-hook-form
Expand Down
2 changes: 1 addition & 1 deletion src/components/forms/recipe/UpdateRecipeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface EditRecipeFormProps {
export function EditRecipeForm({
recipeId,
initialRecipe,
}: EditRecipeFormProps) {
}: Readonly<EditRecipeFormProps>) {
const router = useRouter();

const recipeQuery = trpc.recipe.getRecipe.useQuery(
Expand Down

0 comments on commit 6730fcc

Please sign in to comment.