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

Update help options #9

Merged
merged 1 commit into from
Apr 22, 2024
Merged
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
19 changes: 18 additions & 1 deletion src/renderer/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import Logout from "@mui/icons-material/Logout";
import EmailIcon from "@mui/icons-material/Email";
import StorageIcon from "@mui/icons-material/Storage";
import HelpIcon from "@mui/icons-material/Help";
import VideoIcon from "@mui/icons-material/VideoLibrary";
import DocumentationIcon from "@mui/icons-material/TextSnippet";
import hubsLogo from "../../../static/hubs.svg";

type Props = {
Expand All @@ -41,6 +43,14 @@ export default function App({ children }: Props): JSX.Element {
}, [setOpen]);

const openHelp = useCallback(() => {
window.electronAPI.openInBrowser("https://hubs.mozilla.com/labs/downloading-your-data/");
}, []);

const openVideo = useCallback(() => {
window.electronAPI.openInBrowser("https://youtu.be/vnkgGLkcxuk");
}, []);

const openDocs = useCallback(() => {
window.electronAPI.openInBrowser("https://hubs.mozilla.com/docs/download-data.html");
}, []);

Expand All @@ -65,10 +75,17 @@ export default function App({ children }: Props): JSX.Element {
</Grid>
</Grid>
<Grid item xs={1} textAlign={"end"}>
<IconButton onClick={openHelp} sx={{ padding: 0 }}>
<IconButton onClick={openHelp}>
<HelpIcon fontSize="large" />
</IconButton>
<IconButton onClick={openVideo}>
<VideoIcon fontSize="large" />
</IconButton>
<IconButton onClick={openDocs}>
<DocumentationIcon fontSize="large" />
</IconButton>
</Grid>

</Grid>
{credentials && <Menu
id="basic-menu"
Expand Down
Loading