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:
Kurdistan Tech Ministry committed 2025-12-11 01:45:13 +03:00
1 parent 11678fe7cd
commit 47ea12d0de
286 files changed
+1393 -317

No files matched your search

+3 -3
View File
@@ -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);