mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
rebrand plebbit options to pkc options
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
export { default } from './pkc-options';
|
||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
import { RefObject, useRef, useState } from 'react';
|
import { RefObject, useRef, useState } from 'react';
|
||||||
import { setAccount, useAccount, usePlebbitRpcSettings } from '@plebbit/plebbit-react-hooks';
|
import { setAccount, useAccount, usePlebbitRpcSettings } from '@plebbit/plebbit-react-hooks';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import styles from './plebbit-options.module.css';
|
import styles from './pkc-options.module.css';
|
||||||
|
|
||||||
interface SettingsProps {
|
interface SettingsProps {
|
||||||
ipfsGatewayUrlsRef?: RefObject<HTMLTextAreaElement>;
|
ipfsGatewayUrlsRef?: RefObject<HTMLTextAreaElement>;
|
||||||
@@ -113,7 +113,7 @@ const PlebbitRPCSettings = ({ plebbitRpcRef }: SettingsProps) => {
|
|||||||
</div>
|
</div>
|
||||||
{showInfo && (
|
{showInfo && (
|
||||||
<div className={styles.plebbitRpcSettingsInfo}>
|
<div className={styles.plebbitRpcSettingsInfo}>
|
||||||
use a plebbit full node locally, or remotely with SSL
|
use a PKC full node locally, or remotely with SSL
|
||||||
<br />
|
<br />
|
||||||
<ol>
|
<ol>
|
||||||
<li>get secret auth key from the node</li>
|
<li>get secret auth key from the node</li>
|
||||||
@@ -264,7 +264,7 @@ const PlebbitOptions = () => {
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.category}>
|
<div className={styles.category}>
|
||||||
<span className={styles.categoryTitle}>plebbit RPC:</span>
|
<span className={styles.categoryTitle}>Node RPC:</span>
|
||||||
<span className={styles.categorySettings}>
|
<span className={styles.categorySettings}>
|
||||||
<PlebbitRPCSettings plebbitRpcRef={plebbitRpcRef} />
|
<PlebbitRPCSettings plebbitRpcRef={plebbitRpcRef} />
|
||||||
</span>
|
</span>
|
||||||
@@ -1 +0,0 @@
|
|||||||
export { default } from './plebbit-options';
|
|
||||||
@@ -8,7 +8,7 @@ import BlockedAddressesSetting from './blocked-addresses-setting';
|
|||||||
import CryptoAddressSetting from './crypto-address-setting';
|
import CryptoAddressSetting from './crypto-address-setting';
|
||||||
import CryptoWalletsSetting from './crypto-wallets-setting';
|
import CryptoWalletsSetting from './crypto-wallets-setting';
|
||||||
import InterfaceSettings from './interface-settings';
|
import InterfaceSettings from './interface-settings';
|
||||||
import PlebbitOptions from './plebbit-options';
|
import PlebbitOptions from './pkc-options';
|
||||||
import SubscriptionsSetting from './subscriptions-setting';
|
import SubscriptionsSetting from './subscriptions-setting';
|
||||||
|
|
||||||
const SettingsModal = () => {
|
const SettingsModal = () => {
|
||||||
@@ -66,7 +66,7 @@ const SettingsModal = () => {
|
|||||||
if (showCryptoWalletSettings && 'crypto-wallet-settings' !== excludeCategoryId) return 'crypto-wallet-settings';
|
if (showCryptoWalletSettings && 'crypto-wallet-settings' !== excludeCategoryId) return 'crypto-wallet-settings';
|
||||||
if (showSubscriptionsSettings && 'subscriptions-settings' !== excludeCategoryId) return 'subscriptions-settings';
|
if (showSubscriptionsSettings && 'subscriptions-settings' !== excludeCategoryId) return 'subscriptions-settings';
|
||||||
if (showBlockedAddressesSetting && 'blocked-addresses-settings' !== excludeCategoryId) return 'blocked-addresses-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;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -106,7 +106,7 @@ const SettingsModal = () => {
|
|||||||
setShowCryptoWalletSettings(hash === 'crypto-wallet-settings');
|
setShowCryptoWalletSettings(hash === 'crypto-wallet-settings');
|
||||||
setShowSubscriptionsSettings(hash === 'subscriptions-settings');
|
setShowSubscriptionsSettings(hash === 'subscriptions-settings');
|
||||||
setShowBlockedAddressesSetting(hash === 'blocked-addresses-settings');
|
setShowBlockedAddressesSetting(hash === 'blocked-addresses-settings');
|
||||||
setShowPlebbitOptionsSettings(hash === 'plebbit-options-settings');
|
setShowPlebbitOptionsSettings(hash === 'pkc-options-settings');
|
||||||
}
|
}
|
||||||
}, [hash]);
|
}, [hash]);
|
||||||
|
|
||||||
@@ -186,8 +186,8 @@ const SettingsModal = () => {
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
{showBlockedAddressesSetting && <BlockedAddressesSetting />}
|
{showBlockedAddressesSetting && <BlockedAddressesSetting />}
|
||||||
<div id='plebbit-options-settings' className={`${styles.setting} ${styles.category}`}>
|
<div id='pkc-options-settings' className={`${styles.setting} ${styles.category}`}>
|
||||||
<label onClick={() => handleCategoryClick('plebbit-options-settings', showPlebbitOptionsSettings, setShowPlebbitOptionsSettings)}>
|
<label onClick={() => handleCategoryClick('pkc-options-settings', showPlebbitOptionsSettings, setShowPlebbitOptionsSettings)}>
|
||||||
<span className={showPlebbitOptionsSettings ? styles.hideButton : styles.showButton} />
|
<span className={showPlebbitOptionsSettings ? styles.hideButton : styles.showButton} />
|
||||||
{t('plebbit_options')}
|
{t('plebbit_options')}
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user