add support project button
This commit is contained in:
@@ -19,6 +19,8 @@ import { LoginButton } from "../Login/LoginButton";
|
|||||||
import { PlanModeButton } from "../PlanModeButton/PlanModeButton";
|
import { PlanModeButton } from "../PlanModeButton/PlanModeButton";
|
||||||
import { SettingsButton } from "../Settings/SettingsButtons";
|
import { SettingsButton } from "../Settings/SettingsButtons";
|
||||||
import { AlertModeButton } from "../AlertModeButton/AlertModeButton";
|
import { AlertModeButton } from "../AlertModeButton/AlertModeButton";
|
||||||
|
import { SupportButton } from "../SupportButton/SupportButton";
|
||||||
|
|
||||||
|
|
||||||
function ResponsiveAppBar() {
|
function ResponsiveAppBar() {
|
||||||
const [anchorElNav, setAnchorElNav] = React.useState<null | HTMLElement>(
|
const [anchorElNav, setAnchorElNav] = React.useState<null | HTMLElement>(
|
||||||
@@ -103,6 +105,9 @@ function ResponsiveAppBar() {
|
|||||||
<MenuItem onClick={handleCloseNavMenu}>
|
<MenuItem onClick={handleCloseNavMenu}>
|
||||||
<CCPButton />
|
<CCPButton />
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
<MenuItem onClick={handleCloseNavMenu}>
|
||||||
|
<SupportButton />
|
||||||
|
</MenuItem>
|
||||||
<MenuItem onClick={handleCloseNavMenu}>
|
<MenuItem onClick={handleCloseNavMenu}>
|
||||||
<SettingsButton />
|
<SettingsButton />
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
@@ -150,6 +155,7 @@ function ResponsiveAppBar() {
|
|||||||
<DiscordButton />
|
<DiscordButton />
|
||||||
<GitHubButton />
|
<GitHubButton />
|
||||||
<CCPButton />
|
<CCPButton />
|
||||||
|
<SupportButton />
|
||||||
<SettingsButton />
|
<SettingsButton />
|
||||||
<CompactModeButton />
|
<CompactModeButton />
|
||||||
<PlanModeButton />
|
<PlanModeButton />
|
||||||
|
23
src/app/components/SupportButton/SupportButton.tsx
Normal file
23
src/app/components/SupportButton/SupportButton.tsx
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
import { Box, Button, Tooltip } from "@mui/material";
|
||||||
|
export const SupportButton = () => {
|
||||||
|
return (
|
||||||
|
<Box>
|
||||||
|
<Tooltip
|
||||||
|
title={`
|
||||||
|
Consider using code 'CALLIEVE' on EVE store checkout to support the project! Click to copy to clipboard ;)
|
||||||
|
`}
|
||||||
|
>
|
||||||
|
<Button
|
||||||
|
href=""
|
||||||
|
style={{ width: "100%" }}
|
||||||
|
sx={{ color: "white", display: "block" }}
|
||||||
|
onClick={() => {
|
||||||
|
navigator.clipboard.writeText("CALLIEVE");
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
CALLIEVE
|
||||||
|
</Button>
|
||||||
|
</Tooltip>
|
||||||
|
</Box>
|
||||||
|
);
|
||||||
|
};
|
Reference in New Issue
Block a user