-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update design for links and docs sections (#346)
- Loading branch information
Showing
11 changed files
with
182 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"namesake": minor | ||
--- | ||
|
||
Refine design for quest documents and references |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Button, type ButtonProps } from "@/components/common"; | ||
import { Heading } from "react-aria-components"; | ||
|
||
type QuestSectionProps = { | ||
title: string; | ||
children: React.ReactNode; | ||
action?: Omit<ButtonProps, "variant" | "size">; | ||
}; | ||
|
||
export const QuestSection = ({ | ||
title, | ||
children, | ||
action, | ||
}: QuestSectionProps) => { | ||
return ( | ||
<section> | ||
<div className="flex justify-between items-center border-b border-gray-dim h-9 pb-1 mb-4"> | ||
<Heading className="text-lg text-medium">{title}</Heading> | ||
{action && <Button variant="ghost" size="small" {...action} />} | ||
</div> | ||
{children} | ||
</section> | ||
); | ||
}; |
Oops, something went wrong.