bug fixes (#116)

* bug fixes

* fix ws url
This commit is contained in:
UUBulb authored and GitHub committed 2025-02-05 18:46:42 +08:00
1 parent a52bf64779
commit d96a2e4c3c
8 files changed
+30 -29

No files matched your search

+3 -1
View File
@@ -1,6 +1,7 @@
"use client"
import { useState } from "react"
import { useTranslation } from "react-i18next"
import { Label } from "../ui/label"
import { Textarea } from "../ui/textarea"
@@ -13,6 +14,7 @@ interface PusherProps {
export const Pusher: React.FC<PusherProps> = ({ property, setData }) => {
const [cData, setCData] = useState<Record<string, any>>({})
const { t } = useTranslation()
return (
<div className="flex flex-col gap-3">
@@ -43,7 +45,7 @@ export const Pusher: React.FC<PusherProps> = ({ property, setData }) => {
}}
/>
</div>
<Label>Preview</Label>
<Label>{t("Preview")}</Label>
<Textarea value={JSON.stringify(cData, null, 2)} readOnly />
</div>
)