-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add NoPublishedVersionEmptyState
- Loading branch information
1 parent
15e3aa0
commit e4fafc2
Showing
2 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ import { | |
BaseURLParams, | ||
CodeEditor, | ||
DryRunEditorMode, | ||
GenericEmptyState, | ||
getDeploymentManifest, | ||
MODES, | ||
useAsync, | ||
|
@@ -13,9 +12,9 @@ import { importComponentFromFELibrary } from '@Components/common' | |
import { ReactComponent as ICFilePlay } from '@Icons/ic-file-play.svg' | ||
// FIXME: Placeholder icon since no sense of git merge icon as of now | ||
import { ReactComponent as ICFileCode } from '@Icons/ic-file-code.svg' | ||
import noArtifact from '@Images/[email protected]' | ||
import ToggleResolveScopedVariables from './ToggleResolveScopedVariables' | ||
import { ConfigDryRunProps } from './types' | ||
import NoPublishedVersionEmptyState from './NoPublishedVersionEmptyState' | ||
|
||
const DryRunEditorModeSelect = importComponentFromFELibrary('DryRunEditorModeSelect', null, 'function') | ||
|
||
|
@@ -50,13 +49,7 @@ const ConfigDryRun = ({ | |
|
||
const renderEditorBody = () => { | ||
if (isDraftPresent && dryRunEditorMode === DryRunEditorMode.PUBLISHED_VALUES && !isPublishedConfigPresent) { | ||
return ( | ||
<GenericEmptyState | ||
image={noArtifact} | ||
title="No published version" | ||
subTitle="Published override for this file does not exist" | ||
/> | ||
) | ||
return <NoPublishedVersionEmptyState /> | ||
} | ||
|
||
return ( | ||
|
12 changes: 12 additions & 0 deletions
12
...ations/DevtronApps/Details/AppConfigurations/MainContent/NoPublishedVersionEmptyState.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { GenericEmptyState } from '@devtron-labs/devtron-fe-common-lib' | ||
import noArtifact from '@Images/[email protected]' | ||
|
||
const NoPublishedVersionEmptyState = () => ( | ||
<GenericEmptyState | ||
image={noArtifact} | ||
title="No published version" | ||
subTitle="Published override for this file does not exist" | ||
/> | ||
) | ||
|
||
export default NoPublishedVersionEmptyState |