File tree Expand file tree Collapse file tree
apps/website/src/app/dashboard/[id]/ama/amas Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { DashboardCrumbs } from '../../../../_components/DashboardCrumbs' ;
2+ import { Heading } from '@/components/common/Heading' ;
3+
4+ export default async function AMAMangementPage ( { params } : PageProps < '/dashboard/[id]/ama/amas/new' > ) {
5+ const { id } = await params ;
6+
7+ return (
8+ < div className = "flex flex-col [&:not]:first-of-type:mt-8 [&>*]:first-of-type:mb-4" >
9+ < DashboardCrumbs
10+ segments = { [
11+ { label : 'AMA Bot' , href : `/dashboard/${ id } /ama` } ,
12+ { label : 'AMA Sessions' , href : `/dashboard/${ id } /ama/amas` } ,
13+ { label : 'New' } ,
14+ ] }
15+ />
16+ < Heading subtitle = "Create a new AMA session" title = "AMA sessions" />
17+ </ div >
18+ ) ;
19+ }
Original file line number Diff line number Diff line change @@ -3,16 +3,14 @@ import { AMASessionsList } from './_components/AMASessionsList';
33import { Heading } from '@/components/common/Heading' ;
44import { SearchBar } from '@/components/common/SearchBar' ;
55
6- export default async function AMAPage ( { params } : PageProps < '/dashboard/[id]/ama/amas' > ) {
6+ export default async function AMAMangementPage ( { params } : PageProps < '/dashboard/[id]/ama/amas' > ) {
77 const { id } = await params ;
88
99 return (
1010 < >
1111 < div className = "flex flex-col [&:not]:first-of-type:mt-8 [&>*]:first-of-type:mb-4" >
1212 < DashboardCrumbs segments = { [ { label : 'AMA Bot' , href : `/dashboard/${ id } /ama` } , { label : 'AMA Sessions' } ] } />
13- < div className = "flex flex-col items-start justify-between gap-4 md:flex-row md:items-center" >
14- < Heading subtitle = "Create, edit, and manage AMAs in your community" title = "AMA sessions" />
15- </ div >
13+ < Heading subtitle = "Create, edit, and manage AMAs in your community" title = "AMA sessions" />
1614 < SearchBar placeholder = "Search AMA sessions..." />
1715 </ div >
1816
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ import { nanoid } from 'nanoid';
88import { context } from '../context.js' ;
99import { discordAPIOAuth } from './discordAPI.js' ;
1010
11- export type MeGuild = Pick < RESTAPIPartialCurrentUserGuild , 'icon' | 'id' | 'name' > & {
12- approximate_member_count ?: number ;
13- approximate_presence_count ?: number ;
11+ export type MeGuild = Pick <
12+ RESTAPIPartialCurrentUserGuild ,
13+ 'approximate_member_count' | 'approximate_presence_count' | 'icon' | 'id' | 'name'
14+ > & {
1415 bots : BotId [ ] ;
1516 meCanManage : boolean ;
1617} ;
You can’t perform that action at this time.
0 commit comments