Skip to content

Commit

Permalink
add df on demo toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigui authored and Guillaume NICOLAS committed Nov 21, 2023
1 parent 51b053b commit de3de0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function AppGuidedTour({
onImportDemoContent,
onRequestClose,
welcomeStepBody = null,
tourId,
...rest
}) {
const { t } = useTranslation(I18N_DOMAIN_COMPONENTS);
Expand Down Expand Up @@ -52,6 +53,7 @@ function AppGuidedTour({

return (
<GuidedTour
tourId={tourId}
isOpen={isOpen}
showButtons={!isNavigationDisabled}
showCloseButton={!isNavigationDisabled}
Expand Down Expand Up @@ -100,6 +102,7 @@ function AppGuidedTour({
setImportDemoContent(event.target.checked);
}}
checked={importDemoContent}
data-feature={tourId && `guidedtour.${tourId}.demo`}
/>
</form>
)}
Expand Down Expand Up @@ -134,6 +137,7 @@ AppGuidedTour.propTypes = {
onRequestOpen: PropTypes.func.isRequired,
onImportDemoContent: PropTypes.func,
onRequestClose: PropTypes.func.isRequired,
tourId: PropTypes.string,
};

export default AppGuidedTour;
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function AppGuidedTourContainer({ withDemoContent = false }) {

return (
<AppGuidedTour
tourId="preparation"
isOpen
appName="Data Preparation"
steps={[
Expand Down

0 comments on commit de3de0d

Please sign in to comment.