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

💩 Expose useTutorial hook #43

Merged
merged 3 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/subsurface-app-management",
"version": "1.1.19",
"version": "1.1.20",
"description": "React Typescript components/hooks to communicate with equinor/sam",
"types": "dist/index.d.ts",
"type": "module",
Expand Down
3 changes: 3 additions & 0 deletions src/providers/TutorialProvider/TutorialProvider.hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export const useGetTutorialSasToken = () => {
});
};

/**
* Use with caution. There has not been much testing of how using this hook in an app affects the tutorial logic
*/
export const useTutorial = () => {
const context = useContext(TutorialContext);
if (context === undefined) {
Expand Down
1 change: 1 addition & 0 deletions src/providers/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { TutorialProvider } from './TutorialProvider/TutorialProvider';
export { FeatureToggleProvider } from './FeatureToggleProvider';
export { useTutorial } from './TutorialProvider/TutorialProvider.hooks';