diff --git a/apps/governance/src/components/Icons.tsx b/apps/governance/src/components/Icons.tsx index 0a256af7f..6fa86a3c6 100644 --- a/apps/governance/src/components/Icons.tsx +++ b/apps/governance/src/components/Icons.tsx @@ -9,7 +9,7 @@ export const ExternalLink = ({ size = 14 }: { size?: number }) => ( ); -export const Sync = ({ size = 28 }: { size?: number }) => ( +export const SyncIcon = ({ size = 28 }: { size?: number }) => ( ); -export const Profile = ({ size = 28 }: { size?: number }) => ( +export const ProfileIcon = ({ size = 28 }: { size?: number }) => ( { {'View on '}IPFS - {isConnected && address ? ( + {isConnected ? ( @@ -36,8 +36,8 @@ export const Nav = () => { Connect )} - diff --git a/apps/governance/src/components/Tabs.tsx b/apps/governance/src/components/Tabs.tsx index 8f2ec97a6..b9df49a88 100644 --- a/apps/governance/src/components/Tabs.tsx +++ b/apps/governance/src/components/Tabs.tsx @@ -6,13 +6,15 @@ import { Link, useLocation } from 'react-router-dom'; const underlineClass = `absolute left-0 right-0 h-[2px] bg-blue-gradient -bottom-px rounded-full`; const underlineHoverClass = `absolute left-0 right-0 h-[2px] bg-blue-gradient opacity-0 group-hover:opacity-100 brightness-50 -bottom-px rounded-full transition-all duration-200 ease-in-out`; -export const Tabs = (props: { +interface TabsProps { tabs: { label: string; href: string; }[]; className?: string; -}) => { +} + +export const Tabs = (props: TabsProps) => { const location = useLocation(); const activeTab = props.tabs.findIndex( (tab) => tab.href === location.pathname, @@ -72,12 +74,3 @@ export const Tabs = (props: { ); }; - -// const BottomBorder = ({ active }: { active: boolean }) => { -// const hoverStyle = useSpring({ -// from: { opacity: 0 }, -// to: { opacity: active ? 100 : 0 }, -// }); - -// return ; -// };