summaryrefslogtreecommitdiff
path: root/gui/src/components/composer/Composer.tsx
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-11-12 10:32:46 +0700
committerpolwex <polwex@sortug.com>2025-11-12 10:32:46 +0700
commitab786760a16c07031fa9b7e8987ebe755a57912c (patch)
treefae744eb25a196d8fe94a95be55c246ac3679545 /gui/src/components/composer/Composer.tsx
parent284ce9ce7d9f81e54e91f917329d48926487fbf4 (diff)
further fixes to engagement flow
Diffstat (limited to 'gui/src/components/composer/Composer.tsx')
-rw-r--r--gui/src/components/composer/Composer.tsx14
1 files changed, 0 insertions, 14 deletions
diff --git a/gui/src/components/composer/Composer.tsx b/gui/src/components/composer/Composer.tsx
index 81d0358..8b7e343 100644
--- a/gui/src/components/composer/Composer.tsx
+++ b/gui/src/components/composer/Composer.tsx
@@ -1,5 +1,4 @@
import useLocalState from "@/state/state";
-import type { Poast } from "@/types/trill";
import Sigil from "@/components/Sigil";
import { useState, useEffect, useRef, type FormEvent } from "react";
import Snippets, { ReplySnippet } from "./Snippets";
@@ -42,19 +41,6 @@ function Composer({ isAnon }: { isAnon?: boolean }) {
async function poast(e: FormEvent<HTMLFormElement>) {
e.preventDefault();
// TODO
- // const parent = replying ? replying : null;
- // const tokens = tokenize(input);
- // const post: SentPoast = {
- // host: parent ? parent.host : our,
- // author: our,
- // thread: parent ? parent.thread : null,
- // parent: parent ? parent.id : null,
- // contents: input,
- // read: openLock,
- // write: openLock,
- // tags: input.match(HASHTAGS_REGEX) || [],
- // };
- // TODO make it user choosable
setLoading(true);
const res =