Skip to content

Commit bcb084e

Browse files
authored
Merge pull request #607 from devtron-labs/feat/ev-calc-cleanup
refactor: remove heightToDeduct from generic empty state
2 parents f21ac2d + 030491a commit bcb084e

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/Common/EmptyState/GenericEmptyState.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const GenericEmptyState = ({
2626
isButtonAvailable,
2727
classname,
2828
styles,
29-
heightToDeduct,
3029
imageType,
3130
renderButton,
3231
imageClassName,
@@ -53,7 +52,6 @@ const GenericEmptyState = ({
5352
className={`flex ${isRowLayout ? 'dc__gap-32' : 'column dc__gap-20'} empty-state ${classname || ''}`}
5453
style={styles}
5554
data-testid="generic-empty-state"
56-
{...(heightToDeduct >= 0 && { style: { ...styles, height: `calc(100vh - ${heightToDeduct}px)` } })}
5755
>
5856
{!SvgImage ? (
5957
!noImage && (

src/Common/Types.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,6 @@ export interface GenericEmptyStateType {
161161
subTitle?: ReactNode
162162
isButtonAvailable?: boolean
163163
styles?: CSSProperties
164-
/**
165-
* @deprecated To be removed; use flex based layout instead
166-
*/
167-
heightToDeduct?: number
168164
imageType?: string
169165
SvgImage?
170166
renderButton?: () => JSX.Element

0 commit comments

Comments
 (0)