Skip to content

Commit 1e5e826

Browse files
committed
chore: init new ama page
1 parent 012a36f commit 1e5e826

3 files changed

Lines changed: 25 additions & 7 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
}

apps/website/src/app/dashboard/[id]/ama/amas/page.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@ import { AMASessionsList } from './_components/AMASessionsList';
33
import { Heading } from '@/components/common/Heading';
44
import { 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

services/api/src/util/me.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ import { nanoid } from 'nanoid';
88
import { context } from '../context.js';
99
import { 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
};

0 commit comments

Comments
 (0)