From e10811b1e2610d8b82221ec11d5300425777bec7 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 7 Aug 2021 22:41:04 -0300 Subject: rename title --- packages/frontend/src/paths/admin/list/View.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/frontend/src/paths/admin/list/View.tsx b/packages/frontend/src/paths/admin/list/View.tsx index 8febcff..35096cd 100644 --- a/packages/frontend/src/paths/admin/list/View.tsx +++ b/packages/frontend/src/paths/admin/list/View.tsx @@ -36,14 +36,14 @@ interface Props { } export function View({ instances, onCreate, onDelete, onPurge, onUpdate, setInstanceName, selected }: Props): VNode { - const [show, setShow] = useState<"enabled" | "disabled" | null>("enabled"); - const showIsEnabled = show === 'enabled' ? "is-active" : '' - const showIsDisabled = show === 'disabled' ? "is-active" : '' + const [show, setShow] = useState<"active" | "deleted" | null>("active"); + const showIsActive = show === 'active' ? "is-active" : '' + const showIsDeleted = show === 'deleted' ? "is-active" : '' const showAll = show === null ? "is-active" : '' const i18n = useTranslator() - const showingInstances = showIsDisabled ? - instances.filter(i => i.deleted) : (showIsEnabled ? + const showingInstances = showIsDeleted ? + instances.filter(i => i.deleted) : (showIsActive ? instances.filter(i => !i.deleted) : instances) @@ -54,14 +54,14 @@ export function View({ instances, onCreate, onDelete, onPurge, onUpdate, setInst