Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants