Skip to content

Commit a19f7a5

Browse files
author
Laurie T. Malau
committed
Replace with sorting icon
1 parent 305d8a1 commit a19f7a5

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed
Lines changed: 1 addition & 0 deletions
Loading

components/dashboard/src/teams/TeamUsage.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { ErrorCodes } from "@gitpod/gitpod-protocol/lib/messaging/error";
2323
import { FeatureFlagContext } from "../contexts/FeatureFlagContext";
2424
import { ReactComponent as CreditsSvg } from "../images/credits.svg";
2525
import { ReactComponent as Spinner } from "../icons/Spinner.svg";
26-
import Arrow from "../components/Arrow";
26+
import { ReactComponent as SortArrow } from "../images/sort-arrow.svg";
2727

2828
function TeamUsage() {
2929
const { teams } = useContext(TeamsContext);
@@ -202,9 +202,16 @@ function TeamUsage() {
202202
<span>Credits</span>
203203
</ItemField>
204204
<ItemField className="my-auto cursor-pointer">
205-
<span onClick={() => setIsStartedTimeDescending(!isStartedTimeDescending)}>
205+
<span
206+
className="flex my-auto"
207+
onClick={() => setIsStartedTimeDescending(!isStartedTimeDescending)}
208+
>
206209
Started
207-
<Arrow direction={isStartedTimeDescending ? "down" : "up"} />
210+
<SortArrow
211+
className={`h-4 w-4 my-auto ${
212+
isStartedTimeDescending ? "" : " transform rotate-180"
213+
}`}
214+
/>
208215
</span>
209216
</ItemField>
210217
</Item>

0 commit comments

Comments
 (0)