mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-26 19:25:47 +03:00
Use onClose
This commit is contained in:
parent
7d28744234
commit
908efb17ff
1 changed files with 4 additions and 8 deletions
|
@ -1056,10 +1056,8 @@ function RelatedActions({ info, instance, authenticated, standalone }) {
|
|||
{!!showTranslatedBio && (
|
||||
<Modal
|
||||
class="light"
|
||||
onClick={(e) => {
|
||||
if (e.target === e.currentTarget) {
|
||||
setShowTranslatedBio(false);
|
||||
}
|
||||
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) {
|
||||
setShowAddRemoveLists(false);
|
||||
}
|
||||
onClose={() => {
|
||||
setShowAddRemoveLists(false);
|
||||
}}
|
||||
>
|
||||
<AddRemoveListsSheet
|
||||
|
|
Loading…
Reference in a new issue