mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-26 12:29:10 +00:00
* feat(web): add server-setup page for when bot isn't in the server picked * chore: move contexts into their own folder * feat(web): add recent guilds context, and app shell helper context * feat(web): show recent guilds in masthead * feat(web): functionally add recents to servers list * fix(web): correct styling for servers listing recents/all headers * fix(web): correct some type issues with appShellProps * fix(web): don't show ServerListing recents when recents is empty
23 lines
734 B
TypeScript
23 lines
734 B
TypeScript
import { AppShell, AppShellProps } from '@roleypoly/design-system/organisms/app-shell';
|
|
import {
|
|
RolePicker,
|
|
RolePickerProps,
|
|
} from '@roleypoly/design-system/organisms/role-picker';
|
|
import * as React from 'react';
|
|
|
|
export type RolePickerTemplateProps = RolePickerProps & Omit<AppShellProps, 'children'>;
|
|
|
|
export const RolePickerTemplate = (props: RolePickerTemplateProps) => {
|
|
const { user, guilds, activeGuildId, recentGuilds, ...pickerProps } = props;
|
|
return (
|
|
<AppShell
|
|
activeGuildId={activeGuildId}
|
|
user={user}
|
|
guilds={guilds}
|
|
recentGuilds={recentGuilds}
|
|
small
|
|
>
|
|
<RolePicker {...pickerProps} />
|
|
</AppShell>
|
|
);
|
|
};
|