* types * Working, but messy * Add InputColor component * types * Show default theme values when not customized * Support custom theme on team sign-in page * Payload validation * Custom theme on shared documents * Improve theme validation * Team -> Workspace in settings
10 lines
214 B
TypeScript
10 lines
214 B
TypeScript
import { Team } from "@server/models";
|
|
|
|
export default function presentPublicTeam(team: Team) {
|
|
return {
|
|
name: team.name,
|
|
avatarUrl: team.avatarUrl,
|
|
customTheme: team.preferences?.customTheme,
|
|
};
|
|
}
|