feat: basic help page

This commit is contained in:
Kieran 2023-02-03 18:20:17 +00:00
parent eb002e065c
commit d1087d0405
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
4 changed files with 25 additions and 2 deletions

View File

@ -15,6 +15,11 @@ export const TranslateHost = "https://translate.snort.social";
*/
export const VoidCatHost = "https://void.cat";
/**
* Kierans pubkey
*/
export const KieranPubKey = "npub1v0lxxxxutpvrelsksy8cdhgfux9l6a42hsj2qzquu2zk7vc9qnkszrqj49";
/**
* Websocket re-connect timeout
*/

View File

@ -1,4 +1,4 @@
import { ApiHost } from "Const";
import { ApiHost, KieranPubKey } from "Const";
import ProfilePreview from "Element/ProfilePreview";
import ZapButton from "Element/ZapButton";
import { HexKey } from "Nostr";
@ -6,7 +6,7 @@ import { useEffect, useState } from "react";
import { bech32ToHex } from "Util";
const Developers = [
bech32ToHex("npub1v0lxxxxutpvrelsksy8cdhgfux9l6a42hsj2qzquu2zk7vc9qnkszrqj49"), // kieran
bech32ToHex(KieranPubKey), // kieran
bech32ToHex("npub107jk7htfv243u0x5ynn43scq9wrxtaasmrwwa8lfu2ydwag6cx2quqncxg"), // verbiricha
bech32ToHex("npub1r0rs5q2gk0e3dk3nlc7gnu378ec6cnlenqp8a3cjhyzu6f8k5sgs4sq9ac"), // Karnage
];

13
src/Pages/HelpPage.tsx Normal file
View File

@ -0,0 +1,13 @@
import { Link } from "react-router-dom";
import { KieranPubKey } from "Const";
export default function HelpPage() {
return (
<>
<h2>NIP-05</h2>
<p>
If you have an enquiry about your NIP-05 order please DM <Link to={`/messages/${KieranPubKey}`}>Kieran</Link>
</p>
</>
)
}

View File

@ -28,6 +28,7 @@ import ChatPage from 'Pages/ChatPage';
import DonatePage from 'Pages/DonatePage';
import HashTagsPage from 'Pages/HashTagsPage';
import SearchPage from 'Pages/SearchPage';
import HelpPage from 'Pages/HelpPage';
/**
* HTTP query provider
@ -49,6 +50,10 @@ export const router = createBrowserRouter([
path: "/login",
element: <LoginPage />
},
{
path: "/help",
element: <HelpPage />
},
{
path: "/e/:id",
element: <EventPage />