diff --git a/src/app/AppRoutes.tsx b/src/app/AppRoutes.tsx index 1d79b23..e17f8d8 100644 --- a/src/app/AppRoutes.tsx +++ b/src/app/AppRoutes.tsx @@ -8,6 +8,10 @@ import Invision from "../pages/invision/Invision"; import Vortexopedia from "../pages/Vortexopedia"; import Factions from "../pages/factions/Factions"; import Faction from "../pages/factions/Faction"; +import FactionChannel from "../pages/factions/FactionChannel"; +import FactionInitiative from "../pages/factions/FactionInitiative"; +import FactionThreadCreate from "../pages/factions/FactionThreadCreate"; +import FactionInitiativeCreate from "../pages/factions/FactionInitiativeCreate"; import FactionCreate from "../pages/factions/FactionCreate"; import ProposalPP from "../pages/proposals/ProposalPP"; import ProposalChamber from "../pages/proposals/ProposalChamber"; @@ -49,6 +53,30 @@ const AppRoutes: React.FC = () => { } /> } /> } /> + } + /> + } + /> + } + /> + } + /> + } + /> + } + /> } /> } /> } /> diff --git a/src/components/AddressInline.tsx b/src/components/AddressInline.tsx index 3eb872e..21e01d6 100644 --- a/src/components/AddressInline.tsx +++ b/src/components/AddressInline.tsx @@ -1,4 +1,5 @@ import { useEffect, useState } from "react"; +import { Link } from "react-router"; import { Check, Copy } from "lucide-react"; import { shortAddress } from "@/lib/profileUi"; @@ -38,12 +39,22 @@ export const AddressInline: React.FC = ({ - - {shortAddress(address, size)} - + {address.trim().length > 0 ? ( + + {shortAddress(address, size)} + + ) : ( + + {shortAddress(address, size)} + + )} {showCopy ? ( + ) : null} + {canLeave ? ( + + ) : null} + {isFounderAdmin ? ( + + ) : null} + + + {viewerRole === "founder" ? ( +
+ + Founder leave disabled until transfer + +
+ ) : null} -
- {canJoin ? ( - - ) : null} - {canLeave ? ( - - ) : null} - {viewerRole === "founder" ? ( - Founder leave disabled until transfer - ) : null} - {isFounderAdmin ? ( - - ) : null} +
+ + +
{isFounderAdmin && editOpen ? ( @@ -495,16 +482,21 @@ const Faction: React.FC = () => { channels.map((channel) => (
-
-

{channel.title}

+ +

+ {channel.title} +

#{channel.slug} · {channel.writeScope} · threads{" "} {channel.threadCount}

-
+ {isFounderAdmin ? (