File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
apps/studio/components/interfaces/Organization Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ export const OrgNotFound = ({ slug }: { slug?: string }) => {
4141 < AlertError error = { organizationsError } subject = "Failed to load organizations" />
4242 ) }
4343 { isOrganizationsSuccess &&
44- organizations ?. map ( ( org ) => < OrganizationCard key = { org . slug } organization = { org } /> ) }
44+ organizations ?. map ( ( org ) => (
45+ < OrganizationCard key = { org . slug } organization = { org } href = { `/new/${ org . slug } ` } />
46+ ) ) }
4547 </ div >
4648 </ >
4749 )
Original file line number Diff line number Diff line change @@ -5,12 +5,18 @@ import { ActionCard } from 'components/ui/ActionCard'
55import { useProjectsQuery } from 'data/projects/projects-query'
66import { Organization } from 'types'
77
8- export const OrganizationCard = ( { organization } : { organization : Organization } ) => {
8+ export const OrganizationCard = ( {
9+ organization,
10+ href,
11+ } : {
12+ organization : Organization
13+ href ?: string
14+ } ) => {
915 const { data : allProjects = [ ] } = useProjectsQuery ( )
1016 const numProjects = allProjects . filter ( ( x ) => x . organization_slug === organization . slug ) . length
1117
1218 return (
13- < Link href = { `/new /${ organization . slug } `} >
19+ < Link href = { href ?? `/org /${ organization . slug } `} >
1420 < ActionCard
1521 bgColor = "bg border"
1622 className = "[&>div]:items-center"
You can’t perform that action at this time.
0 commit comments