diff --git a/client/package.json b/client/package.json
index 1a7fce6..57c3848 100644
--- a/client/package.json
+++ b/client/package.json
@@ -10,7 +10,6 @@
"@types/node": "^17.0.45",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
- "@types/react-swipeable-views": "^0.13.2",
"emoji-mart": "^5.5.2",
"emoji-picker-react": "^4.5.15",
"link-preview-js": "^3.0.5",
@@ -20,7 +19,6 @@
"react-linkify": "^1.0.0-alpha",
"react-router-dom": "^6.15.0",
"react-scripts": "5.0.1",
- "react-swipeable-views": "^0.14.0",
"web-vitals": "^2.1.4",
"workbox-background-sync": "^6.6.0",
"workbox-broadcast-update": "^6.6.0",
diff --git a/client/src/App.tsx b/client/src/App.tsx
index 86a05f0..226fe4a 100644
--- a/client/src/App.tsx
+++ b/client/src/App.tsx
@@ -1,40 +1,19 @@
-import React from "react";
import "./App.css";
import Home from "./components/Home";
import Settings from "./components/Settings";
-import SwipeableViews from "react-swipeable-views";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
import Thread from "./components/Thread";
import Header from "./components/Header/Header";
function App() {
- const [index, setIndex] = React.useState(1);
-
- const handleChangeIndex = (index: number) => {
- console.log("Changed index to:", index); // Add a log to see if this function is called
- setIndex(index);
- };
return (
} />
- } />
+ } />
} />
-
-
-
-
- }
- />
);
diff --git a/client/src/components/Forms/Emojis/emoji-picker.tsx b/client/src/components/Forms/Emojis/emoji-picker.tsx
index 1d1c2a0..41aeb77 100644
--- a/client/src/components/Forms/Emojis/emoji-picker.tsx
+++ b/client/src/components/Forms/Emojis/emoji-picker.tsx
@@ -32,7 +32,9 @@ export function EmojiPicker({
return {
id: pack.id,
name: pack.name,
- emojis: pack.emojis.map((e) => {
+ emojis: pack.emojis
+ .filter((e) => !e.static_url.endsWith('.svg'))
+ .map((e) => {
return {
id: e.shortcode,
name: e.shortcode,
@@ -45,23 +47,17 @@ export function EmojiPicker({
return (
<>
>
diff --git a/client/src/components/Forms/PostFormCard.tsx b/client/src/components/Forms/PostFormCard.tsx
index 2a4b574..9940fa2 100644
--- a/client/src/components/Forms/PostFormCard.tsx
+++ b/client/src/components/Forms/PostFormCard.tsx
@@ -155,16 +155,16 @@ const NewNoteCard = ({
setShowEmojiPicker(false);
try {
if (emoji.id) {
- const e = getEmojiById(emoji.id);
- if (e) {
- setComment(comment + " :" + e.shortcode + ":");
- unsigned.tags.push(['emoji', e.shortcode, e.url]);
- };
+ const e = getEmojiById(emoji.id);
+ if (e) {
+ setComment(comment + " :" + e.shortcode + ":");
+ unsigned.tags.push(['emoji', e.shortcode, e.url]);
+ };
}
- } catch {
- //ignore
+ } catch {
+ //ignore
}
- }
+ }
const topOffset = ref.current?.getBoundingClientRect().top;
const leftOffset = ref.current?.getBoundingClientRect().left;
@@ -231,7 +231,7 @@ const NewNoteCard = ({
ref={emojiRef}
/>
)}
-
+
diff --git a/client/src/components/Forms/custom_emojis.json b/client/src/components/Forms/custom_emojis.json
index 0bb6478..801351c 100644
--- a/client/src/components/Forms/custom_emojis.json
+++ b/client/src/components/Forms/custom_emojis.json
@@ -4,16 +4,6 @@
"name": "poast",
"emojis":
[
- {
- "category": "",
- "shortcode": "0",
- "static_url": "https://poa.st/emoji/stolen/0.png",
- "tags": [
- "Custom"
- ],
- "url": "https://poa.st/emoji/stolen/0.png",
- "visible_in_picker": true
- },
{
"category": "",
"shortcode": "00",
diff --git a/client/src/components/Thread.tsx b/client/src/components/Thread.tsx
index 88cd5ce..188e3fc 100644
--- a/client/src/components/Thread.tsx
+++ b/client/src/components/Thread.tsx
@@ -4,7 +4,7 @@ import { Event, nip19 } from "nostr-tools"
import { subNote, subNotesOnce } from '../utils/subscriptions';
import { useEffect } from 'react';
import { uniqBy } from '../utils/otherUtils';
-import { ChatBubbleOvalLeftIcon, PlusCircleIcon } from '@heroicons/react/24/outline';
+import { DocumentTextIcon, FolderPlusIcon } from '@heroicons/react/24/outline';
import { getPow } from '../utils/mine';
import PostCard from './Modals/Card';
import Placeholder from './Modals/Placeholder';
@@ -119,7 +119,7 @@ const Thread = () => {
{OPEvent && }
-
{
setShowForm(prevShowForm => !prevShowForm);
@@ -127,7 +127,7 @@ const Thread = () => {
}}
/>
- {
setShowForm(prevShowForm => !prevShowForm);