mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-10-27 21:29:48 +00:00
feat(governance): implement real blockchain data for governance section
- Update ElectionsInterface to fetch real elections from welati pallet - Add MyVotes component for user voting history (proposals, elections, delegations) - Add GovernanceHistory component for completed elections and proposals - Integrate DelegationManager into GovernanceInterface delegation tab - Fix linter errors across multiple files (unused imports, type annotations) - Update eslint.config.js to ignore SDK docs and CJS files
This commit is contained in:
1 parent
11678fe7cd
commit
47ea12d0de
286 files changed
+1393
-317
No files matched your search
@@ -58,7 +58,7 @@ const SidebarNav: React.FC<{ structure: object, onLinkClick: () => void, onSDKCl
|
||||
);
|
||||
};
|
||||
|
||||
const renderNav = (struct: any) => {
|
||||
const renderNav = (struct: Record<string, unknown>) => {
|
||||
return Object.entries(struct).map(([key, value]) => {
|
||||
if (typeof value === 'string') {
|
||||
// Check if it's the SDK docs special link
|
||||
@@ -204,8 +204,8 @@ const Docs: React.FC = () => {
|
||||
const sanitized = DOMPurify.sanitize(parsed);
|
||||
setContent(sanitized);
|
||||
|
||||
} catch (e: any) {
|
||||
setError(e.message);
|
||||
} catch (e: unknown) {
|
||||
setError(e instanceof Error ? e.message : 'Unknown error');
|
||||
setContent('');
|
||||
} finally {
|
||||
setIsLoading(false);
|
||||
|
||||
Reference in new issue
Block a user