From dcc8ea666d78f518c2796cd1b193177332136321 Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Fri, 30 Oct 2020 16:13:17 -0400 Subject: [PATCH] landscape: remove reverse alphabetical sort --- pkg/interface/src/types/index.ts | 5 ----- .../src/views/landscape/components/Sidebar/SidebarList.tsx | 3 +-- .../views/landscape/components/Sidebar/SidebarListHeader.tsx | 1 - .../src/views/landscape/components/Sidebar/types.ts | 2 +- 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/pkg/interface/src/types/index.ts b/pkg/interface/src/types/index.ts index 10135b03d..32d4b2166 100644 --- a/pkg/interface/src/types/index.ts +++ b/pkg/interface/src/types/index.ts @@ -8,13 +8,8 @@ export * from './group-update'; export * from './graph-update'; export * from './invite-update'; export * from './launch-update'; -export * from './link-listen-update'; -export * from './link-update'; export * from './local-update'; export * from './metadata-update'; export * from './noun'; -export * from './permission-update'; -export * from './publish-response'; -export * from './publish-update'; export * from './s3-update'; export * from './workspace'; diff --git a/pkg/interface/src/views/landscape/components/Sidebar/SidebarList.tsx b/pkg/interface/src/views/landscape/components/Sidebar/SidebarList.tsx index 56ef356f7..fa0a8100c 100644 --- a/pkg/interface/src/views/landscape/components/Sidebar/SidebarList.tsx +++ b/pkg/interface/src/views/landscape/components/Sidebar/SidebarList.tsx @@ -31,8 +31,7 @@ function sidebarSort( return { asc: alphabetical, - desc: (a, b) => alphabetical(b, a), - lastUpdated, + lastUpdated }; } diff --git a/pkg/interface/src/views/landscape/components/Sidebar/SidebarListHeader.tsx b/pkg/interface/src/views/landscape/components/Sidebar/SidebarListHeader.tsx index 9ed71ac86..209ba11f2 100644 --- a/pkg/interface/src/views/landscape/components/Sidebar/SidebarListHeader.tsx +++ b/pkg/interface/src/views/landscape/components/Sidebar/SidebarListHeader.tsx @@ -87,7 +87,6 @@ export function SidebarListHeader(props: { Sort Order - diff --git a/pkg/interface/src/views/landscape/components/Sidebar/types.ts b/pkg/interface/src/views/landscape/components/Sidebar/types.ts index a861be523..7cdc970e0 100644 --- a/pkg/interface/src/views/landscape/components/Sidebar/types.ts +++ b/pkg/interface/src/views/landscape/components/Sidebar/types.ts @@ -5,7 +5,7 @@ export type SidebarItemStatus = | "disconnected" | "loading"; -export type SidebarSort = "asc" | "desc" | "lastUpdated"; +export type SidebarSort = "asc" | "lastUpdated"; export interface SidebarListConfig { sortBy: SidebarSort;