Skip to content

Commit 1772eef

Browse files
committed
feat: add type FetchApiContext to useClientContext
1 parent a8030de commit 1772eef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/shared/ReactActionForm.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { useClientContext } from '@/hooks/useClientContext';
1919

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

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

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

5354
const { setAlertBarProps, renderAlertBar } = useAlertBar();
5455

55-
const { fetchCount, updateClientCtx } = useClientContext();
56+
const { fetchCount, updateClientCtx } = useClientContext<FetchApiContext>();
5657
const [formErrors, setFormErrors] = React.useState<Record<string, string>>(
5758
{}
5859
);

0 commit comments

Comments
 (0)