Skip to content

Commit

Permalink
Improve submit module activity
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed Mar 26, 2024
1 parent 8de7740 commit 05247a7
Show file tree
Hide file tree
Showing 2 changed files with 212 additions and 187 deletions.
17 changes: 16 additions & 1 deletion Website/src/activitys/ModuleViewActivity/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React from "react";
import Typography from "@mui/material/Typography";
import Button from "@mui/material/Button";
import Avatar from "@mui/material/Avatar";
import { Verified } from "@mui/icons-material";
import { Verified, VolunteerActivism } from "@mui/icons-material";
import Stack from "@mui/material/Stack";
import { useActivity } from "@Hooks/useActivity";
import { useTheme } from "@Hooks/useTheme";
Expand Down Expand Up @@ -306,6 +306,21 @@ const ModuleViewActivity = () => {
>
{strings("download")}
</Button>
{track.donate && (
<Button
variant="contained"
onClick={() => {
os.open(track.donate, {
target: "_blank",
features: {
color: theme.palette.primary.main,
},
});
}}
>
<VolunteerActivism />
</Button>
)}
</Stack>
</Stack>
</Stack>
Expand Down
Loading

0 comments on commit 05247a7

Please sign in to comment.