File tree Expand file tree Collapse file tree 4 files changed +22
-6
lines changed
Expand file tree Collapse file tree 4 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ export const CopyButton = (props: CopyButtonProps) => {
1616 } }
1717 >
1818 < Show when = { copied ( ) } >
19- < FiCheck />
19+ < FiCheck size = { props . size ?? 16 } />
2020 </ Show >
2121 < Show when = { ! copied ( ) } >
22- < FiClipboard class = "text-gray-500" />
22+ < FiClipboard size = { props . size ?? 16 } class = "text-gray-500" />
2323 </ Show >
2424 </ button >
2525 ) ;
Original file line number Diff line number Diff line change 11import { useContext } from "solid-js" ;
22import { UserContext } from "../contexts/UserContext" ;
3+ import { CopyButton } from "./CopyButton" ;
34
45export const OrgName = ( ) => {
56 const userContext = useContext ( UserContext ) ;
67
78 return (
8- < h3 class = "text-xl font-semibold text-neutral-600" >
9+ < h3 class = "flex items-baseline gap-2 text-xl font-semibold text-neutral-600" >
910 { userContext . selectedOrg ( ) . name }
11+ < CopyButton size = { 14 } text = { userContext . selectedOrg ( ) . id } />
1012 </ h3 >
1113 ) ;
1214} ;
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import { OrganizationHomepage } from "./pages/orgs/OrganizationHomepage.tsx";
1919import { OrgUserPage } from "./pages/orgs/OrgUserPage.tsx" ;
2020import { OrgBillingPage } from "./pages/orgs/OrgBillingPage.tsx" ;
2121import { OrgSettings } from "./pages/orgs/OrgSettings.tsx" ;
22+ import { HomeRedirect } from "./pages/HomeRedirect.tsx" ;
2223
2324if ( ! DEV ) {
2425 Sentry . init ( {
@@ -50,10 +51,11 @@ const routes: RouteDefinition[] = [
5051 {
5152 path : "/" ,
5253 component : NavbarLayout ,
53- load : ( args ) => {
54- args . params ;
55- } ,
5654 children : [
55+ {
56+ path : "/" ,
57+ component : HomeRedirect ,
58+ } ,
5759 {
5860 path : "/org" ,
5961 component : OrganizationLayout ,
Original file line number Diff line number Diff line change 1+ import { useNavigate } from "@solidjs/router" ;
2+ import { onMount } from "solid-js" ;
3+
4+ export const HomeRedirect = ( ) => {
5+ const navigate = useNavigate ( ) ;
6+
7+ onMount ( ( ) => {
8+ navigate ( "/org" ) ;
9+ } ) ;
10+
11+ return < > </ > ;
12+ } ;
You can’t perform that action at this time.
0 commit comments