mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
feat(problemset-layout): add AvatarButton to problemset layout
This commit is contained in:
parent
171ee8abdc
commit
e6b4be4758
@ -1,4 +1,5 @@
|
|||||||
import { Banner } from "@/components/banner";
|
import { Banner } from "@/components/banner";
|
||||||
|
import { AvatarButton } from "@/components/avatar-button";
|
||||||
|
|
||||||
interface ProblemsetLayoutProps {
|
interface ProblemsetLayoutProps {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
@ -6,8 +7,11 @@ interface ProblemsetLayoutProps {
|
|||||||
|
|
||||||
export default function ProblemsetLayout({ children }: ProblemsetLayoutProps) {
|
export default function ProblemsetLayout({ children }: ProblemsetLayoutProps) {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col">
|
<div className="relative flex flex-col">
|
||||||
<Banner />
|
<Banner />
|
||||||
|
<div className="absolute top-2 right-4">
|
||||||
|
<AvatarButton />
|
||||||
|
</div>
|
||||||
<main className="container mx-auto p-4">
|
<main className="container mx-auto p-4">
|
||||||
{children}
|
{children}
|
||||||
</main>
|
</main>
|
||||||
|
Loading…
Reference in New Issue
Block a user