feat: source code link in about page

This commit is contained in:
Artemy 2023-04-27 18:56:35 +03:00
parent 962cec0875
commit 24046c0f32
3 changed files with 14 additions and 3 deletions

View file

@ -31,6 +31,8 @@ import socket from "./components/socket";
import Settings from "./pages/settings";
import { useState } from "react";
import { localesProcess } from "./components/utils";
import { ButtonWithIcon } from "./components/button";
import { LinkIcon } from "@heroicons/react/24/outline";
function App() {
Storage.prototype.setObj = function (key, obj) {
@ -82,9 +84,16 @@ function App() {
<Route
path="/about"
element={
<div className="col-span-4 md">
<RenderMarkdown>{locals.about_md}</RenderMarkdown>
</div>
<>
<ButtonWithIcon
icon={LinkIcon}
text={locals.SourceCode}
href="https://github.com/artegoser/AnoPaper"
/>
<div className="col-span-4 md">
<RenderMarkdown>{locals.about_md}</RenderMarkdown>
</div>
</>
}
/>
<Route path="/notes" element={<Notes />} />

View file

@ -74,6 +74,7 @@ let en = {
NoNotesFound: "No notes found",
LocalNote: "Local",
Menu: "Menu",
SourceCode: "Source code",
};
export default en;

View file

@ -76,6 +76,7 @@ let ru = {
LocalNote: "Локальная",
PublishNote: "Публичная",
Menu: "Меню",
SourceCode: "Исходный код",
};
export default ru;