From b3c88e46e90248e8c352ddd070bd8d25c8403bbe Mon Sep 17 00:00:00 2001 From: plebeius Date: Tue, 30 Dec 2025 18:21:04 +0100 Subject: [PATCH] rebrand plebbit options to pkc options --- src/components/settings-modal/pkc-options/index.ts | 1 + .../pkc-options.module.css} | 0 .../pkc-options.tsx} | 6 +++--- src/components/settings-modal/plebbit-options/index.ts | 1 - src/components/settings-modal/settings-modal.tsx | 10 +++++----- 5 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 src/components/settings-modal/pkc-options/index.ts rename src/components/settings-modal/{plebbit-options/plebbit-options.module.css => pkc-options/pkc-options.module.css} (100%) rename src/components/settings-modal/{plebbit-options/plebbit-options.tsx => pkc-options/pkc-options.tsx} (98%) delete mode 100644 src/components/settings-modal/plebbit-options/index.ts diff --git a/src/components/settings-modal/pkc-options/index.ts b/src/components/settings-modal/pkc-options/index.ts new file mode 100644 index 00000000..44bce6f4 --- /dev/null +++ b/src/components/settings-modal/pkc-options/index.ts @@ -0,0 +1 @@ +export { default } from './pkc-options'; diff --git a/src/components/settings-modal/plebbit-options/plebbit-options.module.css b/src/components/settings-modal/pkc-options/pkc-options.module.css similarity index 100% rename from src/components/settings-modal/plebbit-options/plebbit-options.module.css rename to src/components/settings-modal/pkc-options/pkc-options.module.css diff --git a/src/components/settings-modal/plebbit-options/plebbit-options.tsx b/src/components/settings-modal/pkc-options/pkc-options.tsx similarity index 98% rename from src/components/settings-modal/plebbit-options/plebbit-options.tsx rename to src/components/settings-modal/pkc-options/pkc-options.tsx index bc4e2ce8..ff71a1ea 100644 --- a/src/components/settings-modal/plebbit-options/plebbit-options.tsx +++ b/src/components/settings-modal/pkc-options/pkc-options.tsx @@ -1,7 +1,7 @@ import { RefObject, useRef, useState } from 'react'; import { setAccount, useAccount, usePlebbitRpcSettings } from '@plebbit/plebbit-react-hooks'; import { useTranslation } from 'react-i18next'; -import styles from './plebbit-options.module.css'; +import styles from './pkc-options.module.css'; interface SettingsProps { ipfsGatewayUrlsRef?: RefObject; @@ -113,7 +113,7 @@ const PlebbitRPCSettings = ({ plebbitRpcRef }: SettingsProps) => { {showInfo && (
- use a plebbit full node locally, or remotely with SSL + use a PKC full node locally, or remotely with SSL
  1. get secret auth key from the node
  2. @@ -264,7 +264,7 @@ const PlebbitOptions = () => {
- plebbit RPC: + Node RPC: diff --git a/src/components/settings-modal/plebbit-options/index.ts b/src/components/settings-modal/plebbit-options/index.ts deleted file mode 100644 index 705f8559..00000000 --- a/src/components/settings-modal/plebbit-options/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './plebbit-options'; diff --git a/src/components/settings-modal/settings-modal.tsx b/src/components/settings-modal/settings-modal.tsx index 7e95a77c..75e4f860 100644 --- a/src/components/settings-modal/settings-modal.tsx +++ b/src/components/settings-modal/settings-modal.tsx @@ -8,7 +8,7 @@ import BlockedAddressesSetting from './blocked-addresses-setting'; import CryptoAddressSetting from './crypto-address-setting'; import CryptoWalletsSetting from './crypto-wallets-setting'; import InterfaceSettings from './interface-settings'; -import PlebbitOptions from './plebbit-options'; +import PlebbitOptions from './pkc-options'; import SubscriptionsSetting from './subscriptions-setting'; const SettingsModal = () => { @@ -66,7 +66,7 @@ const SettingsModal = () => { if (showCryptoWalletSettings && 'crypto-wallet-settings' !== excludeCategoryId) return 'crypto-wallet-settings'; if (showSubscriptionsSettings && 'subscriptions-settings' !== excludeCategoryId) return 'subscriptions-settings'; if (showBlockedAddressesSetting && 'blocked-addresses-settings' !== excludeCategoryId) return 'blocked-addresses-settings'; - if (showPlebbitOptionsSettings && 'plebbit-options-settings' !== excludeCategoryId) return 'plebbit-options-settings'; + if (showPlebbitOptionsSettings && 'pkc-options-settings' !== excludeCategoryId) return 'pkc-options-settings'; return null; }; @@ -106,7 +106,7 @@ const SettingsModal = () => { setShowCryptoWalletSettings(hash === 'crypto-wallet-settings'); setShowSubscriptionsSettings(hash === 'subscriptions-settings'); setShowBlockedAddressesSetting(hash === 'blocked-addresses-settings'); - setShowPlebbitOptionsSettings(hash === 'plebbit-options-settings'); + setShowPlebbitOptionsSettings(hash === 'pkc-options-settings'); } }, [hash]); @@ -186,8 +186,8 @@ const SettingsModal = () => {
{showBlockedAddressesSetting && } -
-