We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8ec8ca1 + 6f3b5dd commit 3907132Copy full SHA for 3907132
1 file changed
src/components/NavBar.tsx
@@ -52,10 +52,16 @@ const NavBar = ({
52
const newResourceModalRef = useRef<ModalHandle>(null);
53
54
const showNewResourceModal = async () => {
55
+ if (create && create.onShowModal) {
56
+ await create.onShowModal();
57
+ }
58
newResourceModalRef.current?.open()
59
};
60
61
const hideNewResourceModal = () => {
62
+ if (create && create.onHideModal) {
63
+ create.onHideModal();
64
65
newResourceModalRef.current?.close?.()
66
67
0 commit comments