add github link

This commit is contained in:
hzrd149 2023-03-24 11:10:29 -05:00
parent 1f40f5643e
commit 7aec637332
3 changed files with 17 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
"nostrudel": minor
---
Add github link to settings view

View File

@ -239,3 +239,9 @@ export const PlusCircleIcon = createIcon({
d: "M11 11V7h2v4h4v2h-4v4h-2v-4H7v-2h4zm1 11C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",
defaultProps,
});
export const GithubIcon = createIcon({
displayName: "GithubIcon",
d: "M10 0a10 10 0 0 0-3.16 19.49c.5.1.68-.22.68-.48l-.01-1.7c-2.78.6-3.37-1.34-3.37-1.34-.46-1.16-1.11-1.47-1.11-1.47-.9-.62.07-.6.07-.6 1 .07 1.53 1.03 1.53 1.03.9 1.52 2.34 1.08 2.91.83.1-.65.35-1.09.63-1.34-2.22-.25-4.55-1.11-4.55-4.94 0-1.1.39-1.99 1.03-2.69a3.6 3.6 0 0 1 .1-2.64s.84-.27 2.75 1.02a9.58 9.58 0 0 1 5 0c1.91-1.3 2.75-1.02 2.75-1.02.55 1.37.2 2.4.1 2.64.64.7 1.03 1.6 1.03 2.69 0 3.84-2.34 4.68-4.57 4.93.36.31.68.92.68 1.85l-.01 2.75c0 .26.18.58.69.48A10 10 0 0 0 10 0",
defaultProps,
});

View File

@ -14,13 +14,14 @@ import {
ButtonGroup,
FormHelperText,
Select,
Link,
} from "@chakra-ui/react";
import { useState } from "react";
import settings, { LightningPayMode } from "../../services/settings";
import { clearCacheData, deleteDatabase } from "../../services/db";
import accountService from "../../services/account";
import useSubject from "../../hooks/use-subject";
import { LightningIcon, LogoutIcon } from "../../components/icons";
import { GithubIcon, LightningIcon, LogoutIcon } from "../../components/icons";
export default function SettingsView() {
const blurImages = useSubject(settings.blurImages);
@ -237,10 +238,13 @@ export default function SettingsView() {
</AccordionPanel>
</AccordionItem>
</Accordion>
<Flex gap="2" padding="4">
<Flex gap="2" padding="4" alignItems="center" justifyContent="space-between">
<Button leftIcon={<LogoutIcon />} onClick={() => accountService.logout()}>
Logout
</Button>
<Link isExternal href="https://github.com/hzrd149/nostrudel">
<GithubIcon /> Github
</Link>
</Flex>
</Flex>
);