pass threadNumber to reply modal store

This commit is contained in:
plebeius
2025-12-28 22:16:38 +01:00
parent bf2c7ae61b
commit c094786f97
6 changed files with 28 additions and 22 deletions
+2 -1
View File
@@ -113,7 +113,7 @@ const GlobalLayout = () => {
}
}, [theme]);
const { activeCid, parentNumber, threadCid, subplebbitAddress, closeModal, showReplyModal, scrollY } = useReplyModalStore();
const { activeCid, parentNumber, threadNumber, threadCid, subplebbitAddress, closeModal, showReplyModal, scrollY } = useReplyModalStore();
const location = useLocation();
const isInSettingsView = location.pathname.endsWith('/settings');
@@ -126,6 +126,7 @@ const GlobalLayout = () => {
closeModal={closeModal}
parentCid={activeCid}
parentNumber={parentNumber}
threadNumber={threadNumber}
postCid={threadCid}
scrollY={scrollY}
showReplyModal={showReplyModal}