mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 08:32:39 +03:00
tutorial: launch from omnibox
This commit is contained in:
parent
4c4667c0d9
commit
7568ecc2b4
@ -34,6 +34,7 @@ const commandIndex = function (currentGroup) {
|
||||
commands.push(result(`Groups: Create`, `/~landscape/new`, 'Groups', null));
|
||||
commands.push(result(`Groups: Join`, `/~landscape/join`, 'Groups', null));
|
||||
commands.push(result(`Channel: Create`, `/~landscape${workspace}/new`, 'Groups', null));
|
||||
commands.push(result(`Tutorial`, '/?tutorial=true', 'Null', null));
|
||||
|
||||
return commands;
|
||||
};
|
||||
|
@ -20,6 +20,7 @@ import { JoinGroup } from "~/views/landscape/components/JoinGroup";
|
||||
import { Helmet } from 'react-helmet';
|
||||
import useLocalState from "~/logic/state/local";
|
||||
import { useWaitForProps } from '~/logic/lib/useWaitForProps';
|
||||
import { useQuery } from "~/logic/lib/useQuery";
|
||||
import {
|
||||
hasTutorialGroup,
|
||||
TUTORIAL_GROUP,
|
||||
@ -69,6 +70,15 @@ export default function LaunchApp(props) {
|
||||
</Box>
|
||||
);
|
||||
|
||||
const { query } = useQuery();
|
||||
|
||||
useEffect(() => {
|
||||
if(query.tutorial) {
|
||||
props.api.settings.putEntry('tutorial', 'seen', false);
|
||||
}
|
||||
|
||||
}, [query]);
|
||||
|
||||
const { tutorialProgress, nextTutStep } = useLocalState(tutSelector);
|
||||
|
||||
const waiter = useWaitForProps(props);
|
||||
|
Loading…
Reference in New Issue
Block a user