diff --git a/apps/admin/tailwind.config.ts b/apps/admin/tailwind.config.ts index 8ee6306e..52e44e93 100644 --- a/apps/admin/tailwind.config.ts +++ b/apps/admin/tailwind.config.ts @@ -5,7 +5,7 @@ const baseConfig: Config = require("@sahil/configs/tailwind/tailwind.config"); const extendedConfig: Config = { ...baseConfig, content: [ - // @ts-expect-error + // @ts-ignore ...baseConfig.content, "./src/Addresses/**/**.{js,ts,jsx,tsx,mdx}", "./src/Agents/**/*.{js,ts,tsx,tsx,mdx}", diff --git a/apps/agent/next.config.js b/apps/agent/next.config.js index 7ee104e6..1636fe5c 100644 --- a/apps/agent/next.config.js +++ b/apps/agent/next.config.js @@ -2,6 +2,7 @@ const nextConfig = { reactStrictMode: true, transpilePackages: ['@sahil/lib', 'ui', '@sahil/configs'], + output: "standalone", images: { remotePatterns: [ { diff --git a/apps/agent/src/Businesses/BusinessRegistrationForm/BusinessInfo.tsx b/apps/agent/src/Businesses/BusinessRegistrationForm/BusinessInfo.tsx index f2c4c970..fa35ba29 100644 --- a/apps/agent/src/Businesses/BusinessRegistrationForm/BusinessInfo.tsx +++ b/apps/agent/src/Businesses/BusinessRegistrationForm/BusinessInfo.tsx @@ -25,7 +25,7 @@ export const BusinessInfo = () => { const router = useRouter(); - const { formData } = useBusinessFormStore((state) => state); + //const { formData } = useBusinessFormStore((state) => state); const onSubmit: SubmitHandler = async (data) => { const validatedInput = businessInfoSchema.parse(data); }; @@ -36,7 +36,7 @@ export const BusinessInfo = () => {
diff --git a/apps/agent/src/Businesses/BusinessRegistrationForm/BusinessStepsPaginator.tsx b/apps/agent/src/Businesses/BusinessRegistrationForm/BusinessStepsPaginator.tsx index 2748331b..2e4f0bdb 100644 --- a/apps/agent/src/Businesses/BusinessRegistrationForm/BusinessStepsPaginator.tsx +++ b/apps/agent/src/Businesses/BusinessRegistrationForm/BusinessStepsPaginator.tsx @@ -14,7 +14,7 @@ export const BusinessStepsPaginator = ({ onNextStep, onPrevStep, }: Props) => { - const { steps, currentStep } = useBusinessFormStore((state) => state); + const { steps, currentStep } = useBusinessFormStore()((state) => state); const currentIndex = steps.indexOf(currentStep); return ( <> diff --git a/apps/agent/src/Couriers/CourierRegistrationForm/CourierContactDetails.tsx b/apps/agent/src/Couriers/CourierRegistrationForm/CourierContactDetails.tsx index 685a6def..66ae57e2 100644 --- a/apps/agent/src/Couriers/CourierRegistrationForm/CourierContactDetails.tsx +++ b/apps/agent/src/Couriers/CourierRegistrationForm/CourierContactDetails.tsx @@ -22,6 +22,7 @@ const courierContactSchema = z.object({ type FormData = z.infer; export const CourierContactDetails = () => { + // @ts-ignore const { goToStep, updateStepFormData } = useCourierFormStore((state) => ({ formData: state.formData, goToStep: state.goToStep, diff --git a/apps/agent/src/Couriers/CourierRegistrationForm/CourierFormStepsPaginator.tsx b/apps/agent/src/Couriers/CourierRegistrationForm/CourierFormStepsPaginator.tsx index e027a734..2423d5ed 100644 --- a/apps/agent/src/Couriers/CourierRegistrationForm/CourierFormStepsPaginator.tsx +++ b/apps/agent/src/Couriers/CourierRegistrationForm/CourierFormStepsPaginator.tsx @@ -4,7 +4,8 @@ import { JoinGrid } from "ui"; import { HiArrowSmallLeft, HiArrowSmallRight } from "react-icons/hi2"; export const CourierFormStepPaginator = () => { - const { steps, goToStep, currentStep } = useCourierFormStore( + // @ts-ignore + const { steps, goToStep, currentStep } = useCourierFormStore()( (state) => state ); const router = useRouter(); diff --git a/apps/agent/src/Couriers/CourierRegistrationForm/CourierFormSummary.tsx b/apps/agent/src/Couriers/CourierRegistrationForm/CourierFormSummary.tsx index 11270030..2d4b08c8 100644 --- a/apps/agent/src/Couriers/CourierRegistrationForm/CourierFormSummary.tsx +++ b/apps/agent/src/Couriers/CourierRegistrationForm/CourierFormSummary.tsx @@ -7,7 +7,7 @@ import toast, { Toaster } from "react-hot-toast"; export const CourierFormSummary = () => { const router = useRouter(); - const formData = useCourierFormStore((state) => state.formData); + const formData = useCourierFormStore()((state) => state.formData); const { insertCourier, loading, error } = useRegisterCourier(); diff --git a/apps/agent/src/Couriers/CourierRegistrationForm/CourierPersonalInfo.tsx b/apps/agent/src/Couriers/CourierRegistrationForm/CourierPersonalInfo.tsx index 4bf1b16b..a4c3da42 100644 --- a/apps/agent/src/Couriers/CourierRegistrationForm/CourierPersonalInfo.tsx +++ b/apps/agent/src/Couriers/CourierRegistrationForm/CourierPersonalInfo.tsx @@ -24,7 +24,7 @@ const courierInfoSchema = z.object({ type FormData = z.infer; export const CourierPersonalInfo = () => { - const { goToStep, updateStepFormData } = useCourierFormStore((state) => ({ + const { goToStep, updateStepFormData } = useCourierFormStore()((state) => ({ formData: state.formData, goToStep: state.goToStep, updateStepFormData: state.updateStepFormData, diff --git a/apps/agent/src/Couriers/CourierRegistrationForm/CourierVehicleInfo.tsx b/apps/agent/src/Couriers/CourierRegistrationForm/CourierVehicleInfo.tsx index 9748164f..84464749 100644 --- a/apps/agent/src/Couriers/CourierRegistrationForm/CourierVehicleInfo.tsx +++ b/apps/agent/src/Couriers/CourierRegistrationForm/CourierVehicleInfo.tsx @@ -24,7 +24,7 @@ const courierVehicleSchema = z.object({ type FormData = z.infer; export const CourierVehicleInfo = () => { - const { goToStep, updateStepFormData } = useCourierFormStore((state) => ({ + const { goToStep, updateStepFormData } = useCourierFormStore()((state) => ({ formData: state.formData, goToStep: state.goToStep, updateStepFormData: state.updateStepFormData, diff --git a/apps/agent/src/Couriers/types.ts b/apps/agent/src/Couriers/types.ts index e69de29b..da367feb 100644 --- a/apps/agent/src/Couriers/types.ts +++ b/apps/agent/src/Couriers/types.ts @@ -0,0 +1 @@ +export const em = ""; diff --git a/apps/agent/src/Orders/OrderProcessingForm/DeliveryDetails.tsx b/apps/agent/src/Orders/OrderProcessingForm/DeliveryDetails.tsx index 3ef11b64..065fdc43 100644 --- a/apps/agent/src/Orders/OrderProcessingForm/DeliveryDetails.tsx +++ b/apps/agent/src/Orders/OrderProcessingForm/DeliveryDetails.tsx @@ -35,7 +35,7 @@ export const DeliveryDetails = ({ navigateToNextStep }) => { watch, formState: { errors }, } = useForm({ - // @ts-expect-error + // @ts-ignore resolver: zodResolver(deliveryDetailsSchema), }); const onSubmit: SubmitHandler = async (data) => { diff --git a/apps/agent/src/Orders/OrderProcessingForm/OrderSummary.tsx b/apps/agent/src/Orders/OrderProcessingForm/OrderSummary.tsx index 209569ea..2ab37faf 100644 --- a/apps/agent/src/Orders/OrderProcessingForm/OrderSummary.tsx +++ b/apps/agent/src/Orders/OrderProcessingForm/OrderSummary.tsx @@ -58,7 +58,7 @@ export const OrderSummary = () => { watch, formState: { errors }, } = useForm({ - // @ts-expect-error + // @ts-ignore resolver: zodResolver(checkoutSchema), }); const orderItems = useOrderItemsStore((state) => state.orderItems); diff --git a/apps/agent/src/Orders/ProductsCatalogue.tsx b/apps/agent/src/Orders/ProductsCatalogue.tsx index ac7a5272..6d7e0421 100644 --- a/apps/agent/src/Orders/ProductsCatalogue.tsx +++ b/apps/agent/src/Orders/ProductsCatalogue.tsx @@ -38,8 +38,8 @@ export const ProductsCatalogue = () => {

- Products aren't loading due to a technical problem on our side. Please - try again. If the issue continues,{" "} + Products are not loading due to a technical problem on our side. + Please try again. If the issue continues,{" "} contact support.

diff --git a/apps/agent/src/Suppliers/FilterSuppliersModal.tsx b/apps/agent/src/Suppliers/FilterSuppliersModal.tsx index a026a615..d2b21787 100644 --- a/apps/agent/src/Suppliers/FilterSuppliersModal.tsx +++ b/apps/agent/src/Suppliers/FilterSuppliersModal.tsx @@ -40,7 +40,7 @@ const FilterSuppliersModal = () => {