diff --git a/.eslintrc.json b/.eslintrc.json index 80045cf..90ad9b4 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -15,6 +15,7 @@ "plugin:react/jsx-runtime" ], "rules": { + "@typescript-eslint/no-non-null-assertion": "off", "no-nested-ternary": "off", "react/jsx-props-no-spreading": "off", "no-underscore-dangle": "off", diff --git a/src/components/addLibrary.tsx b/src/components/addLibrary.tsx index bb15a14..b685a13 100644 --- a/src/components/addLibrary.tsx +++ b/src/components/addLibrary.tsx @@ -96,14 +96,21 @@ function Form({ onClose }: { onClose: () => void }) { ); } -export function AddLibrary() { +export function AddLibrary({ onCreate }: { onCreate: () => void }) { const modals = useModals(); const openCreateModal = () => { const id = modals.openModal({ title: 'Create a Library', centered: true, - children: