mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 17:41:33 +03:00
landscape: remove reverse alphabetical sort
This commit is contained in:
parent
caffdcbc68
commit
dcc8ea666d
@ -8,13 +8,8 @@ export * from './group-update';
|
|||||||
export * from './graph-update';
|
export * from './graph-update';
|
||||||
export * from './invite-update';
|
export * from './invite-update';
|
||||||
export * from './launch-update';
|
export * from './launch-update';
|
||||||
export * from './link-listen-update';
|
|
||||||
export * from './link-update';
|
|
||||||
export * from './local-update';
|
export * from './local-update';
|
||||||
export * from './metadata-update';
|
export * from './metadata-update';
|
||||||
export * from './noun';
|
export * from './noun';
|
||||||
export * from './permission-update';
|
|
||||||
export * from './publish-response';
|
|
||||||
export * from './publish-update';
|
|
||||||
export * from './s3-update';
|
export * from './s3-update';
|
||||||
export * from './workspace';
|
export * from './workspace';
|
||||||
|
@ -31,8 +31,7 @@ function sidebarSort(
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
asc: alphabetical,
|
asc: alphabetical,
|
||||||
desc: (a, b) => alphabetical(b, a),
|
lastUpdated
|
||||||
lastUpdated,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,7 +87,6 @@ export function SidebarListHeader(props: {
|
|||||||
<Text color="gray">Sort Order</Text>
|
<Text color="gray">Sort Order</Text>
|
||||||
</Box>
|
</Box>
|
||||||
<Radio mb="1" label="A -> Z" id="asc" name="sortBy" />
|
<Radio mb="1" label="A -> Z" id="asc" name="sortBy" />
|
||||||
<Radio mb="1" label="Z -> A" id="desc" name="sortBy" />
|
|
||||||
<Radio label="Last Updated" id="lastUpdated" name="sortBy" />
|
<Radio label="Last Updated" id="lastUpdated" name="sortBy" />
|
||||||
</Col>
|
</Col>
|
||||||
<Col px={2}>
|
<Col px={2}>
|
||||||
|
@ -5,7 +5,7 @@ export type SidebarItemStatus =
|
|||||||
| "disconnected"
|
| "disconnected"
|
||||||
| "loading";
|
| "loading";
|
||||||
|
|
||||||
export type SidebarSort = "asc" | "desc" | "lastUpdated";
|
export type SidebarSort = "asc" | "lastUpdated";
|
||||||
|
|
||||||
export interface SidebarListConfig {
|
export interface SidebarListConfig {
|
||||||
sortBy: SidebarSort;
|
sortBy: SidebarSort;
|
||||||
|
Loading…
Reference in New Issue
Block a user