src/js/gutenberg/components/reference-form-identifier/index.tsx
Function IdentifierForm
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function IdentifierForm(props: Props) {
const { setIdentifierKind } = useDispatch('abt/ui');
const kind = useSelect(select => select('abt/ui').getIdentifierKind());
const [value, setValue] = useState('');
Function fetchData
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function fetchData(
kind: IdentifierKind,
value: string,
): Promise<CSL.Data> {
let response: CSL.Data | ResponseError;