File tree Expand file tree Collapse file tree 3 files changed +8
-16
lines changed
apps/studio/components/interfaces/Home/ProjectList Expand file tree Collapse file tree 3 files changed +8
-16
lines changed Original file line number Diff line number Diff line change 1- import { GitBranch , Github } from 'lucide-react'
1+ import { Github } from 'lucide-react'
22
33import CardButton from 'components/ui/CardButton'
44import { ComputeBadgeWrapper } from 'components/ui/ComputeBadgeWrapper'
@@ -62,11 +62,6 @@ export const ProjectCard = ({
6262 />
6363 </ div >
6464 ) }
65- { isBranchingEnabled && (
66- < div className = "w-fit p-1 border rounded-md flex items-center" >
67- < GitBranch size = { 12 } strokeWidth = { 1.5 } />
68- </ div >
69- ) }
7065 { isGithubIntegrated && (
7166 < >
7267 < div className = "w-fit p-1 border rounded-md flex items-center" >
Original file line number Diff line number Diff line change @@ -142,11 +142,13 @@ export const ProjectCardStatus = ({
142142 if ( renderMode === 'badge' ) {
143143 const badgeVariant = isCritical
144144 ? 'destructive'
145- : projectStatus !== 'isHealthy'
145+ : activeWarnings . length > 0 ||
146+ projectStatus === 'isPauseFailed' ||
147+ projectStatus === 'isRestoreFailed'
146148 ? 'warning'
147- : activeWarnings . length > 0
148- ? 'warning '
149- : 'success '
149+ : projectStatus === 'isHealthy'
150+ ? 'success '
151+ : 'default '
150152
151153 return alertDescription ? (
152154 < Tooltip >
Original file line number Diff line number Diff line change 1- import { GitBranch , Github } from 'lucide-react'
1+ import { Github } from 'lucide-react'
22import { useRouter } from 'next/router'
33import InlineSVG from 'react-inlinesvg'
44
@@ -65,11 +65,6 @@ export const ProjectTableRow = ({
6565 />
6666 </ div >
6767 ) }
68- { isBranchingEnabled && (
69- < div className = "w-fit p-1 border rounded-md flex items-center" >
70- < GitBranch size = { 12 } strokeWidth = { 1.5 } />
71- </ div >
72- ) }
7368 { isGithubIntegrated && (
7469 < >
7570 < div className = "w-fit p-1 border rounded-md flex items-center" >
You can’t perform that action at this time.
0 commit comments