Skip to content

Commit

Permalink
feat: add typings from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Braden MacDonald <[email protected]>
  • Loading branch information
rpenido and bradenmacdonald authored Dec 9, 2023
1 parent 1eea5d2 commit d91716b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/taxonomy/import-tags/ImportTagsWizard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const UploadStep = ({
}) => {
const intl = useIntl();

/** @type {(args: {fileData: FormData}) => void} */
const handleFileLoad = ({ fileData }) => {
setFile(fileData.get('file'));
setImportPlanError(null);
Expand Down Expand Up @@ -206,7 +207,7 @@ const ImportTagsWizard = ({
const steps = ['export', 'upload', 'plan', 'confirm'];
const [currentStep, setCurrentStep] = useState(steps[0]);

const [file, setFile] = useState(null);
const [file, setFile] = useState(/** @type {null|File} */ (null));

const [importPlan, setImportPlan] = useState(null);
const [importPlanError, setImportPlanError] = useState(null);
Expand Down
1 change: 0 additions & 1 deletion src/taxonomy/import-tags/data/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export async function importNewTaxonomy(taxonomyName, taxonomyDescription, file)

/**
* Build the mutation to import tags to an existing taxonomy
* @returns {import("@tanstack/react-query").UseMutationResult}
*/
export const useImportTags = () => {
const queryClient = useQueryClient();
Expand Down

0 comments on commit d91716b

Please sign in to comment.