Skip to content

Commit

Permalink
feat: add type FetchApiContext to useClientContext
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexStack committed Aug 9, 2024
1 parent a8030de commit 1772eef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/shared/ReactActionForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { useClientContext } from '@/hooks/useClientContext';

import SubmitButton from '@/components/shared/SubmitButton';

import { FetchApiContext } from '@/constants';
import { consoleLog } from '@/utils/shared/console-log';
import { getApiResponse } from '@/utils/shared/get-api-response';

Expand Down Expand Up @@ -52,7 +53,7 @@ const ReactActionForm: React.FC = () => {

const { setAlertBarProps, renderAlertBar } = useAlertBar();

const { fetchCount, updateClientCtx } = useClientContext();
const { fetchCount, updateClientCtx } = useClientContext<FetchApiContext>();
const [formErrors, setFormErrors] = React.useState<Record<string, string>>(
{}
);
Expand Down

0 comments on commit 1772eef

Please sign in to comment.