Skip to content

Commit

Permalink
fix: add link icon for stages with links
Browse files Browse the repository at this point in the history
  • Loading branch information
amit-y committed Nov 12, 2024
1 parent 31de21c commit f178bea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/stage/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import PropTypes from 'prop-types';
import { HeadingText, Icon, Popover, PopoverTrigger, PopoverBody } from 'nr1';
import { EditInPlace } from '@newrelic/nr-labs-components';

import IconsLib from '../icons-lib';
import DeleteConfirmModal from '../delete-confirm-modal';
import StageSettingsModal from '../stage-settings-modal';
import { IconsLib, DeleteConfirmModal, StageSettingsModal } from '../';
import { MODES, STATUSES, UI_CONTENT } from '../../constants';
import { stageHeaderShapeClassName } from '../../utils';

Expand Down Expand Up @@ -111,6 +109,9 @@ const StageHeader = ({
className={`stage-header ${status} ${shape} ${linkClass}`}
>
<HeadingText className="name">{name}</HeadingText>
{link ? (
<Icon type={Icon.TYPE.INTERFACE__OPERATIONS__EXTERNAL_LINK} />
) : null}
</div>
);
};
Expand Down
1 change: 1 addition & 0 deletions src/components/stage/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
}

&.link {
gap: 4px;
cursor: pointer;
}
}
Expand Down

0 comments on commit f178bea

Please sign in to comment.