Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
un-comment the preview data section
Browse files Browse the repository at this point in the history
Signed-off-by: huongg <huongg1409@gmail.com>
Huongg committed Jun 4, 2024
1 parent 301da67 commit 7fdc220
Showing 4 changed files with 9 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/components/shareable-url-modal/main-view/main-view.js
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ import IconButton from '../../ui/icon-button';
import InfoIcon from '../../icons/info';
import Input from '../../ui/input';
import MenuOption from '../../ui/menu-option';
// import Toggle from '../../ui/toggle';
import Toggle from '../../ui/toggle';
import {
hostingPlatforms,
KEDRO_VIZ_PUBLISH_AWS_DOCS_URL,
@@ -39,8 +39,7 @@ const renderTextContent = (toggleValue, setTogleValue) => {
</a>
.
</p>
{/* To be commented out until the preview disable is ready */}
{/* <h2 className="shareable-url-modal__content-description-title shareable-url-modal__content-description-title-disclaimer">
<h2 className="shareable-url-modal__content-description-title shareable-url-modal__content-description-title--disclaimer">
Disclaimer{' '}
</h2>
<p className="shareable-url-modal__content-description">
@@ -55,7 +54,7 @@ const renderTextContent = (toggleValue, setTogleValue) => {
checked={toggleValue}
onChange={() => setTogleValue((prev) => !prev)}
/>
</div> */}
</div>
</div>
);
};
1 change: 1 addition & 0 deletions src/components/shareable-url-modal/shareable-url-modal.js
Original file line number Diff line number Diff line change
@@ -124,6 +124,7 @@ const ShareableUrlModal = ({ onToggleModal, visible }) => {
const handleSubmit = async () => {
setDeploymentState('loading');
setIsLoading(true);
setShowPublishedView(false);

// this logic is here to test locally without publishing anything
const hostingPlatformVal = {};
4 changes: 4 additions & 0 deletions src/components/shareable-url-modal/shareable-url-modal.scss
Original file line number Diff line number Diff line change
@@ -451,6 +451,10 @@

.shareable-url-modal__result {
width: 100%;

.url-box__result-url-wrapper {
width: 440px;
}
}
}

Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ const SuccessView = ({
<div className="shareable-url-modal__result">
<UrlBox
url={responseUrl}
onClick={onClick}
onCopyClick={onClick}
href={handleResponseUrl}
showCopiedText={showCopied}
/>

0 comments on commit 7fdc220

Please sign in to comment.