fix replymodal

This commit is contained in:
plebbitor
2023-04-22 21:20:45 +02:00
parent 981f049811
commit 41ab26d7d1
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ const ReplyModal = ({ isOpen, closeModal }) => {
useEffect(() => { useEffect(() => {
if (index !== undefined) { if (index !== undefined) {
navigate(`/p/${selectedAddress}/c/${selectedThread}`) navigate(`/p/${selectedAddress}/c/${selectedParentCid}`)
localStorage.setItem("toastMessage", `Comment pending with index ${index}.`); localStorage.setItem("toastMessage", `Comment pending with index ${index}.`);
} }
}, [index]); }, [index]);
+3 -4
View File
@@ -68,7 +68,6 @@ export const StyledModal = styled(Modal)`
position: absolute; position: absolute;
top: 4px; top: 4px;
left: 5px; left: 5px;
color: black;
text-decoration: underline; text-decoration: underline;
pointer-events: none; pointer-events: none;
} }
@@ -126,7 +125,7 @@ export const StyledModal = styled(Modal)`
} }
span { span {
color: maroon; color: #000;
}`; }`;
case 'Yotsuba-B': case 'Yotsuba-B':
@@ -168,7 +167,7 @@ export const StyledModal = styled(Modal)`
} }
span { span {
color: maroon; color: #000;
}`; }`;
case 'Burichan': case 'Burichan':
@@ -253,7 +252,7 @@ export const StyledModal = styled(Modal)`
} }
span { span {
color: #333; color: #000;
}`; }`;
} }
}} }}