feat: add link to settings

This commit is contained in:
2023-12-04 13:17:55 +00:00
parent 28981264bf
commit 22297aecaa
4 changed files with 20 additions and 20 deletions

View File

@ -12,8 +12,9 @@ import AsyncButton from "./async-button";
export function NostrProviderDialog({
provider,
showEndpoints,
showEditor,
...others
}: { provider: StreamProvider; showEndpoints: boolean } & StreamEditorProps) {
}: { provider: StreamProvider; showEndpoints: boolean, showEditor: boolean } & StreamEditorProps) {
const system = useContext(SnortContext);
const [topup, setTopup] = useState(false);
const [info, setInfo] = useState<StreamProviderInfo>();
@ -198,7 +199,7 @@ export function NostrProviderDialog({
{showEndpoints && streamEndpoints()}
{info.tosAccepted === false ? (
tosInput()
) : (
) : showEditor ? (
<StreamEditor
onFinish={ex => {
provider.updateStreamInfo(system, ex);
@ -221,7 +222,7 @@ export function NostrProviderDialog({
canSetStatus: false,
}}
/>
)}
) : null}
</>
);
}