Replies: 1 comment 3 replies
-
Hey @JamesBock - thanks for the feedback. I agree it would be good to put the modal in its own component. I have a first draft of this (in branch pm/194) - when you get a chance, could you please check the image-table-collapse.tsx? I am having some trouble with the "onClick" event functionality. When I have something like a console.log statement, it prints out when I click the image. But if I try to call ShowModal, or even put any sort of HTML elements in there, it seems to not load anything when I click an image. I am wondering if this is related to the fact that there are some console errors about the type hierarchy (please see screenshot below) - not sure if these were there before. If you would prefer that I show you on my computer I am happy to do so. |
Beta Was this translation helpful? Give feedback.
-
BASTA-tfwa/tenant-file/portal-app/src/component/image-table-collapse.tsx
Line 51 in ebacad5
This is the general functionality but you should split the modal into its own component so we can reuse it with images in other pages.
BASTA-tfwa/tenant-file/portal-app/src/component/image-table-collapse.tsx
Line 63 in ebacad5
Use the 'name' field instead of 'thumbnailName' to get the full size image. You will have to use some css styling to make the image an appropriate size.
BASTA-tfwa/tenant-file/portal-app/src/component/image-table-collapse.tsx
Line 85 in ebacad5
Try using this icon as a close indicator the modal in the header instead of in the footer->
<i className="fa fa-window-close"></i>
Ideally, reactstrap should have se where is the user clicks outside of the modal it will close.
Beta Was this translation helpful? Give feedback.
All reactions