feat: pull relay sets button

This commit is contained in:
codytseng
2025-04-06 16:21:44 +08:00
parent 27ae980f42
commit 864d8c617f
18 changed files with 273 additions and 9 deletions

View File

@@ -175,12 +175,12 @@ function RelaySetItem({ set, urls }: { set: TRelaySet; urls: string[] }) {
function SaveToNewSet({ urls }: { urls: string[] }) {
const { t } = useTranslation()
const { isSmallScreen } = useScreenSize()
const { addRelaySet } = useFavoriteRelays()
const { createRelaySet } = useFavoriteRelays()
const handleSave = () => {
const newSetName = prompt(t('Enter a name for the new relay set'))
if (newSetName) {
addRelaySet(newSetName, urls)
createRelaySet(newSetName, urls)
}
}