Can toggle dark theme
This commit is contained in:
@ -14,6 +14,7 @@ import { AuthApi } from "../api/AuthApi";
|
||||
import { User, UserApi } from "../api/UserApi";
|
||||
import { AsyncWidget } from "./AsyncWidget";
|
||||
import { RouterLink } from "./RouterLink";
|
||||
import { DarkThemeButton } from "./DarkThemeButton";
|
||||
|
||||
interface UserContext {
|
||||
user: User;
|
||||
@ -90,6 +91,8 @@ export function BaseAuthenticatedPage(): React.ReactElement {
|
||||
</Typography>
|
||||
|
||||
<div>
|
||||
<DarkThemeButton />
|
||||
|
||||
<Button size="large" color="inherit">
|
||||
{user!.name}
|
||||
</Button>
|
||||
|
Reference in New Issue
Block a user