mirror of
https://github.com/coder/coder.git
synced 2026-11-04 23:29:17 +08:00
feat: add animations to each <ChevronDown /> (#22068)
This pull-request implement animations for each of our `<ChevronDown />` (and a few other chevrons) so that everything is uniform with `<Autocomplete />`.
This commit is contained in:
@@ -6,10 +6,10 @@ import type {
|
||||
AgentScriptTiming,
|
||||
ProvisionerTiming,
|
||||
} from "api/typesGenerated";
|
||||
import { ChevronDownIcon } from "components/AnimatedIcons/ChevronDown";
|
||||
import { Button } from "components/Button/Button";
|
||||
import sortBy from "lodash/sortBy";
|
||||
import uniqBy from "lodash/uniqBy";
|
||||
import { ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
||||
import { type FC, useState } from "react";
|
||||
import {
|
||||
calcDuration,
|
||||
@@ -107,7 +107,7 @@ export const WorkspaceTimings: FC<WorkspaceTimingsProps> = ({
|
||||
css={styles.collapseTrigger}
|
||||
onClick={() => setIsOpen((o) => !o)}
|
||||
>
|
||||
{isOpen ? <ChevronUpIcon /> : <ChevronDownIcon />}
|
||||
<ChevronDownIcon open={isOpen} className="size-4 mr-4" />
|
||||
<span>Build timeline</span>
|
||||
<span
|
||||
css={(theme) => ({
|
||||
|
||||
Reference in New Issue
Block a user