Skip to content

Commit

Permalink
Implement open github link with external browser.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikoto2000 authored and sheepla committed Aug 31, 2024
1 parent 953e7cc commit a593c4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/AboutDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
Divider,
} from "@mui/material";
import GitHubIcon from "@mui/icons-material/GitHub";
import { open as browserOpen} from "@tauri-apps/api/shell";

const AboutDialog: React.FC<{ open: boolean; onClose: () => void }> = ({ open, onClose }) => {
return (
Expand Down Expand Up @@ -51,7 +52,9 @@ const AboutDialog: React.FC<{ open: boolean; onClose: () => void }> = ({ open, o
<Button
variant="contained"
startIcon={<GitHubIcon />}
href="https://github.com/sheepla/csv-grid-viewer"
onClick={async () => {
await browserOpen("https://github.com/sheepla/csv-grid-viewer");
}}
>
See GitHub Repository
</Button>
Expand Down

0 comments on commit a593c4f

Please sign in to comment.