From 1cac515ad3dde2962f3a9ce6d6d945262a8747f4 Mon Sep 17 00:00:00 2001 From: Katty Barroso <51223655+kattylucy@users.noreply.github.com> Date: Fri, 19 Jul 2024 13:59:17 -0500 Subject: [PATCH] Update maker pool to closed (#2299) --- centrifuge-app/src/components/PoolCard/PoolStatus.tsx | 3 +-- centrifuge-app/src/components/PoolFilter/index.tsx | 2 +- centrifuge-app/src/components/PoolList.tsx | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/centrifuge-app/src/components/PoolCard/PoolStatus.tsx b/centrifuge-app/src/components/PoolCard/PoolStatus.tsx index 0514edc7fe..ad254c685e 100644 --- a/centrifuge-app/src/components/PoolCard/PoolStatus.tsx +++ b/centrifuge-app/src/components/PoolCard/PoolStatus.tsx @@ -1,9 +1,8 @@ import { StatusChip, StatusChipProps } from '@centrifuge/fabric' -export type PoolStatusKey = 'Maker Pool' | 'Open for investments' | 'Closed' | 'Upcoming' | 'Archived' +export type PoolStatusKey = 'Open for investments' | 'Closed' | 'Upcoming' | 'Archived' const statusColor: { [key in PoolStatusKey]: StatusChipProps['status'] } = { - 'Maker Pool': 'info', 'Open for investments': 'ok', Closed: 'default', Upcoming: 'default', diff --git a/centrifuge-app/src/components/PoolFilter/index.tsx b/centrifuge-app/src/components/PoolFilter/index.tsx index eb531cea10..d495ece482 100644 --- a/centrifuge-app/src/components/PoolFilter/index.tsx +++ b/centrifuge-app/src/components/PoolFilter/index.tsx @@ -11,7 +11,7 @@ type PoolFilterProps = { pools?: PoolCardProps[] } -const defaultPoolStatus: PoolStatusKey[] = ['Open for investments', 'Upcoming', 'Maker Pool', 'Closed'] +const defaultPoolStatus: PoolStatusKey[] = ['Open for investments', 'Upcoming', 'Closed'] export function PoolFilter({ pools }: PoolFilterProps) { const isMedium = useIsAboveBreakpoint('M') diff --git a/centrifuge-app/src/components/PoolList.tsx b/centrifuge-app/src/components/PoolList.tsx index c0d89352db..f0881b5c4f 100644 --- a/centrifuge-app/src/components/PoolList.tsx +++ b/centrifuge-app/src/components/PoolList.tsx @@ -173,7 +173,7 @@ export function poolsToPoolCardProps( tinlakePool && tinlakePool.tinlakeMetadata.isArchived ? 'Archived' : tinlakePool && tinlakePool.addresses.CLERK !== undefined && tinlakePool.tinlakeMetadata.maker?.ilk - ? 'Maker Pool' + ? 'Closed' : pool.tranches.at(0)?.capacity.toFloat() // pool is displayed as "open for investments" if the most junior tranche has a capacity ? 'Open for investments' : ('Closed' as PoolStatusKey),