Browse Source

chore: lint useFormApi

pointhalo 3 years ago
parent
commit
681d4a8dcd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/semi-ui/form/hooks/useFormApi.tsx

+ 1 - 1
packages/semi-ui/form/hooks/useFormApi.tsx

@@ -2,6 +2,6 @@ import { BaseFormApi } from '@douyinfe/semi-foundation/form/interface';
 import React, { useContext } from 'react';
 import React, { useContext } from 'react';
 import { FormApiContext } from '../context';
 import { FormApiContext } from '../context';
  
  
-export default function useFormApi<T extends Record<string, any> = any >() {
+export default function useFormApi<T extends Record<string, any> = any>() {
     return useContext<BaseFormApi<T>>(FormApiContext);
     return useContext<BaseFormApi<T>>(FormApiContext);
 }
 }