Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

feat: simple tour #705

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

feat: simple tour #705

wants to merge 3 commits into from

Conversation

spaenleh
Copy link
Member

No description provided.

Copy link
Contributor

@pyphilia pyphilia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR!

const iconInTextStyle = {
width: 20,
height: 20,
marginBottom: '-4px',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be a bit more dynamic?

Comment on lines +31 to +32
content: 'Welcome',
locale: { skip: 'Skip' },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Translations? If it's a prototype it can be done later.

'With this button, you can close the side bar to free some screen space.',
target: `#${TOUR_NAVIGATION_SIDEBAR_CLOSE_BUTTON_ID}`,
},
];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything in there should have translations?

Comment on lines +30 to +31
// position: 'absolute',
// bottom: 0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove.

@@ -39,6 +40,8 @@ import ImportH5P from './ImportH5P';
import ImportZip from './ImportZip';
import ItemTypeTabs from './ItemTypeTabs';

// import TourContext, { TourContextData } from './TourContext';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove.

@@ -61,6 +64,7 @@ type Props = {
const NewItemModal = ({ open, handleClose }: Props): JSX.Element => {
const { t: translateBuilder } = useBuilderTranslation();
const { t: translateCommon } = useCommonTranslation();
// const { isTourOpen } = useContext(TourContext) as TourContextData;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove.

onClose={handleClose}
maxWidth="md"
fullWidth
// disableEnforceFocus={isTourOpen}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove.

@spaenleh spaenleh self-assigned this Sep 19, 2023
@spaenleh spaenleh force-pushed the main branch 2 times, most recently from 0791683 to b513c2f Compare December 16, 2024 09:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants