Use onClose

This commit is contained in:
Lim Chee Aun 2023-09-16 14:47:55 +08:00
parent 7d28744234
commit 908efb17ff

View file

@ -1056,10 +1056,8 @@ function RelatedActions({ info, instance, authenticated, standalone }) {
{!!showTranslatedBio && (
<Modal
class="light"
onClick={(e) => {
if (e.target === e.currentTarget) {
onClose={() => {
setShowTranslatedBio(false);
}
}}
>
<TranslatedBioSheet
@ -1072,10 +1070,8 @@ function RelatedActions({ info, instance, authenticated, standalone }) {
{!!showAddRemoveLists && (
<Modal
class="light"
onClick={(e) => {
if (e.target === e.currentTarget) {
onClose={() => {
setShowAddRemoveLists(false);
}
}}
>
<AddRemoveListsSheet