Skip to content

Commit

Permalink
remove unused logic paths in workspace overview
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 authored and gammelalf committed Mar 25, 2024
1 parent 05ee956 commit 765336c
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions kraken_frontend/src/views/workspace-overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import "../styling/workspace-overview.css";
import WorkspaceIcon from "../svg/workspace";
import { check, handleApiError } from "../utils/helper";

type Sorting = "none" | "name" | "createdAt" | "lastModified";
type Sorting = "none" | "name" | "createdAt";

type WorkspacesProps = {};
type WorkspacesState = {
Expand Down Expand Up @@ -182,19 +182,6 @@ export default class WorkspaceOverview extends React.Component<WorkspacesProps,
/>
<span>Created timestamp</span>
</label>
{/* TODO: track & expose lastModified! */}
{/* <label>
<Checkbox
value={this.state.sorting === "lastModified"}
onChange={() => {
this.setState({
sorting:
this.state.sorting === "lastModified" ? "none" : "lastModified",
});
}}
/>
<span>Last modified</span>
</label> */}
</div>
</div>
</div>
Expand Down Expand Up @@ -222,7 +209,6 @@ export default class WorkspaceOverview extends React.Component<WorkspacesProps,
return a.createdAt.getTime() - b.createdAt.getTime();
case "name":
return a.name.localeCompare(b.name);
case "lastModified": // TODO: not exposed yet
case "none":
return 0;
}
Expand Down

0 comments on commit 765336c

Please sign in to comment.