mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 03:45:06 +03:00
* move branches to page layout * changes * more clean up * use branch status * clean up * gitless flag * tidy up * revert generate * Couple of fixes * Refactor some stuff, standardize copy, add missing loading state * Smol refactor * Replace ephemeral with preview for more consistant language * Few more fixes * Refactor Overview.tsx to use DropdownMenuItemTooltip component * Final round of refactors after code review --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
24 lines
542 B
TypeScript
24 lines
542 B
TypeScript
import type { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
|
|
|
|
export const generateBranchMenu = (ref: string): ProductMenuGroup[] => {
|
|
return [
|
|
{
|
|
title: 'Manage',
|
|
items: [
|
|
{
|
|
name: 'Branches',
|
|
key: 'branches',
|
|
url: `/project/${ref}/branches`,
|
|
items: [],
|
|
},
|
|
{
|
|
name: 'Merge requests',
|
|
key: 'merge-requests',
|
|
url: `/project/${ref}/branches/merge-requests`,
|
|
items: [],
|
|
},
|
|
],
|
|
},
|
|
]
|
|
}
|