feat: add donate button in side menu
This commit is contained in:
parent
31d9cc565f
commit
5aa050a7d6
2 changed files with 9 additions and 5 deletions
|
@ -23,16 +23,12 @@ FROM alpine:3.16.0 as app
|
|||
|
||||
WORKDIR /
|
||||
|
||||
# # Install dependencies
|
||||
RUN apk --no-cache add nodejs npm
|
||||
RUN apk --no-cache add g++
|
||||
RUN apk --no-cache add make
|
||||
RUN apk --no-cache add python3
|
||||
|
||||
# # Install dependencies
|
||||
# RUN apk --no-cache add python3
|
||||
# RUN apk --no-cache add make
|
||||
# RUN apk --no-cache add build-base
|
||||
|
||||
RUN npm install node-gyp -g
|
||||
|
||||
WORKDIR /api
|
||||
|
|
|
@ -10,6 +10,7 @@ import { useRouter } from 'next/router';
|
|||
import { IconType } from 'react-icons';
|
||||
import { useLogoutMutation, useVersionQuery } from '../../generated/graphql';
|
||||
import { getUrl } from '../../core/helpers/url-helpers';
|
||||
import { BsHeart } from 'react-icons/bs';
|
||||
|
||||
const SideMenu: React.FC = () => {
|
||||
const router = useRouter();
|
||||
|
@ -57,6 +58,12 @@ const SideMenu: React.FC = () => {
|
|||
<Flex flex="1" />
|
||||
<List>
|
||||
<div className="mx-3">
|
||||
<a href="https://github.com/meienberger/runtipi?sponsor=1" target="_blank" rel="noreferrer">
|
||||
<ListItem className="cursor-pointer hover:font-bold flex items-center mb-4">
|
||||
<BsHeart size={20} className="mr-3" />
|
||||
<p className="flex-1 mb-1 text-md">Donate</p>
|
||||
</ListItem>
|
||||
</a>
|
||||
<ListItem onClick={() => logout()} className="cursor-pointer hover:font-bold flex items-center mb-5">
|
||||
<FiLogOut size={20} className="mr-3" />
|
||||
<p className="flex-1">Log out</p>
|
||||
|
@ -68,6 +75,7 @@ const SideMenu: React.FC = () => {
|
|||
</ListItem>
|
||||
</div>
|
||||
</List>
|
||||
|
||||
<div className="pb-1 text-center text-sm text-gray-400 mt-5">Tipi version {Package.version}</div>
|
||||
{!isLatest && (
|
||||
<Badge className="self-center mt-1" colorScheme="green">
|
||||
|
|
Loading…
Add table
Reference in a new issue