chore(deps): replace plebbit/plebbit-react-hooks with bitsocialhq/pkc-react-hooks

bitsocialhq/pkc-react-hooks is a fork of plebbit-react-hooks that we're maintaining temporarily as an attempt to modernize the original repository using AI tools, possibly merging changes back into plebbit-react-hooks, which should also be rebranded to pkc-react-hooks eventually, under the org pkcprotocol.
This commit is contained in:
plebeius
2026-02-28 15:02:56 +08:00
parent 8d36673ad1
commit e556a9e662
64 changed files with 638 additions and 946 deletions
@@ -15,7 +15,7 @@ vi.mock('react-i18next', () => ({
}),
}));
vi.mock('@plebbit/plebbit-react-hooks', () => ({
vi.mock('@bitsocialhq/pkc-react-hooks', () => ({
useAccount: () => ({ id: 'test-id', name: 'Account 1', author: { address: '0x123', shortAddress: '0x1...3' } }),
useAccounts: () => ({ accounts: [{ id: 'test-id', name: 'Account 1', author: { shortAddress: '0x1...3' } }] }),
deleteAccount: vi.fn(),
@@ -1,5 +1,5 @@
import { useTranslation } from 'react-i18next';
import { deleteAccount, exportAccount, importAccount, setActiveAccount, useAccount, useAccounts } from '@plebbit/plebbit-react-hooks';
import { deleteAccount, exportAccount, importAccount, setActiveAccount, useAccount, useAccounts } from '@bitsocialhq/pkc-react-hooks';
import styles from './account-settings.module.css';
import { Capacitor } from '@capacitor/core';
import { useLocation, useNavigate } from 'react-router-dom';