Skip to content

Commit f74bb72

Browse files
committed
[projects] Add 'New Workspace' context menu option to all Team Projects cards
1 parent c2b1614 commit f74bb72

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

components/dashboard/src/projects/Projects.tsx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,24 @@ export default function () {
108108
{projects.filter(filter).map(p => (<div key={`project-${p.id}`} className="h-52">
109109
<div className="h-42 border border-gray-100 dark:border-gray-800 rounded-t-xl">
110110
<div className="h-32 p-6">
111-
<div className="flex text-xl font-semibold text-gray-700 dark:text-gray-200 font-medium">
111+
<div className="flex text-gray-700 dark:text-gray-200 font-medium">
112112
<Link to={`/${teamOrUserSlug}/${p.name}`}>
113-
{p.name}
113+
<span className="text-xl font-semibold">{p.name}</span>
114114
</Link>
115115
<span className="flex-grow" />
116116
<div className="justify-end">
117-
<ContextMenu menuEntries={[{
118-
title: "Remove Project",
119-
customFontStyle: 'text-red-600 dark:text-red-400 hover:text-red-800 dark:hover:text-red-300',
120-
onClick: () => onRemoveProject(p)
121-
}]} />
117+
<ContextMenu menuEntries={[
118+
{
119+
title: "New Workspace",
120+
href: `/#${p.cloneUrl}`,
121+
separator: true,
122+
},
123+
{
124+
title: "Remove Project",
125+
customFontStyle: 'text-red-600 dark:text-red-400 hover:text-red-800 dark:hover:text-red-300',
126+
onClick: () => onRemoveProject(p)
127+
},
128+
]} />
122129
</div>
123130
</div>
124131
<a href={p.cloneUrl.replace(/\.git$/, '')}>

0 commit comments

Comments
 (0)