Skip to content

Commit

Permalink
Fix app status in settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
lil5 committed Apr 14, 2024
1 parent 4eb8a1b commit aa5e6ba
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions app/src/pages/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -379,18 +379,18 @@ export default function Settings() {
</span>
</IonItem>
) : null}
{chain.open_to_new_members || chain.published ? (
{!chain.open_to_new_members || !chain.published ? (
<IonItem
lines="none"
color={
chain.published
!chain.published
? "warning"
: chain.is_app_disabled
: !chain.is_app_disabled
? "medium"
: "danger"
}
>
{chain.open_to_new_members ? (
{!chain.open_to_new_members ? (
<>
<IonIcon size="small" icon={lockClosedOutline} />
<span
Expand All @@ -403,16 +403,16 @@ export default function Settings() {
) : null}
{chain.published ? (
<>
<IonIcon size="small" icon={eyeOffOutline} />
<span key="closed" className="tw-ms-1.5">
{t("draft")}
<IonIcon size="small" icon={eyeOutline} />
<span key="visible" className="tw-ms-1.5">
{t("visible")}
</span>
</>
) : (
<>
<IonIcon size="small" icon={eyeOutline} />
<span key="visible" className="tw-ms-1.5">
{t("visible")}
<IonIcon size="small" icon={eyeOffOutline} />
<span key="closed" className="tw-ms-1.5">
{t("draft")}
</span>
</>
)}
Expand Down

0 comments on commit aa5e6ba

Please sign in to comment.