Skip to content

Commit

Permalink
feat(ProductForm): padding
Browse files Browse the repository at this point in the history
  • Loading branch information
mrevanzak committed Nov 26, 2023
1 parent b70d56c commit 6c70f2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/expo/src/components/ProductForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ interface ProductFormProps {

export default function ProductForm({ edit }: ProductFormProps) {
const router = useRouter();
const { productId } = useLocalSearchParams<{ productId: string }>();
const { productId } = useLocalSearchParams();
const { user } = useUser();
const utils = api.useUtils();

const { data } = api.category.getCategories.useQuery({ partial: true });
const productDetail = utils.product.showProduct.getData({
id: productId,
id: productId as string,
});
const addProduct = api.product.addProduct.useMutation();
const editProduct = api.product.editProduct.useMutation();
Expand Down Expand Up @@ -102,7 +102,7 @@ export default function ProductForm({ edit }: ProductFormProps) {
);
});
return (
<KeyboardAwareScrollView>
<KeyboardAwareScrollView paddingV-0>
<FormProvider {...methods}>
<View
marginB-s4
Expand Down

0 comments on commit 6c70f2d

Please sign in to comment.