Skip to content

Commit f4a08f2

Browse files
authored
Merge pull request #390 from captableinc/chore/ux-fixes
chore: minor ux fix on dropdown
2 parents b484bb5 + 73ef818 commit f4a08f2

File tree

1 file changed

+44
-21
lines changed

1 file changed

+44
-21
lines changed

src/components/safe/safe-actions.tsx

Lines changed: 44 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { RiAddFill } from "@remixicon/react";
2-
import { Button } from "../ui/button";
1+
import { Button } from "@/components/ui/button";
32
import {
43
DropdownMenu,
54
DropdownMenuContent,
65
DropdownMenuTrigger,
7-
} from "../ui/dropdown-menu";
6+
} from "@/components/ui/dropdown-menu";
7+
import { RiAddFill, RiSafe2Fill, RiSafeFill } from "@remixicon/react";
88
import { ExistingSafeModal } from "./existing-safe-modal";
99
import { NewSafeModal } from "./new-safe-modal";
1010

@@ -18,24 +18,47 @@ export function SafeActions() {
1818
</Button>
1919
</DropdownMenuTrigger>
2020
<DropdownMenuContent className="flex flex-col text-start">
21-
<ExistingSafeModal
22-
title="Create an existing SAFE agreement"
23-
subtitle="Record an existing SAFE agreement to keep track of it in your captable."
24-
trigger={
25-
<Button variant="ghost" size="sm">
26-
Add existing SAFE
27-
</Button>
28-
}
29-
/>
30-
<NewSafeModal
31-
title="Create a new SAFE agreement"
32-
subtitle="Create, sign and send a new SAFE agreement to your investors."
33-
trigger={
34-
<Button variant="ghost" size="sm">
35-
Add new SAFE
36-
</Button>
37-
}
38-
/>
21+
<ul>
22+
<NewSafeModal
23+
title="Create a new SAFE agreement"
24+
subtitle="Create, sign and send a new SAFE agreement to your investors."
25+
trigger={
26+
<li>
27+
<Button
28+
variant="link"
29+
className="hover:no-underline hover:text-gray-700"
30+
size="sm"
31+
type="submit"
32+
>
33+
<>
34+
<RiSafeFill className="mr-2 h-4 w-4" />
35+
Create a new SAFE
36+
</>
37+
</Button>
38+
</li>
39+
}
40+
/>
41+
42+
<ExistingSafeModal
43+
title="Create an existing SAFE agreement"
44+
subtitle="Record an existing SAFE agreement to keep track of it in your captable."
45+
trigger={
46+
<li>
47+
<Button
48+
variant="link"
49+
className="hover:no-underline hover:text-gray-900"
50+
size="sm"
51+
type="submit"
52+
>
53+
<>
54+
<RiSafe2Fill className="mr-2 h-4 w-4" />
55+
Import existing SAFE
56+
</>
57+
</Button>
58+
</li>
59+
}
60+
/>
61+
</ul>
3962
</DropdownMenuContent>
4063
</DropdownMenu>
4164
);

0 commit comments

Comments
 (0)