-
-
Notifications
You must be signed in to change notification settings - Fork 108
feat(status-effect-indicator): add status effect indicator component #454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,26 @@ | ||||||
| import CopyCommandButton from "@/app/docs/components/copy-command-button"; | ||||||
| import { OpenInV0Button } from "@/app/docs/components/open-in-v0-button"; | ||||||
|
|
||||||
| import StatusEffectsBlock from "./status-effects"; | ||||||
|
|
||||||
| export default function StatusEffectsPage() { | ||||||
| return ( | ||||||
| <div className="flex flex-col gap-10"> | ||||||
| <div className="flex flex-col gap-4 border rounded-lg p-4 min-h-[600px]"> | ||||||
| <div className="flex flex-col md:flex-row gap-2 items-center justify-between"> | ||||||
| <h2 className="text-sm text-muted-foreground sm:pl-3"> | ||||||
| Status Effect Indicator Component | ||||||
| </h2> | ||||||
| <div className="flex flex-col md:flex-row items-center gap-2"> | ||||||
| <CopyCommandButton | ||||||
| command="pnpm dlx shadcn@latest add @8bitcn/status-effect-indicator" | ||||||
| copyCommand="pnpm dlx shadcn@latest add @8bitcn/status-effect-indicator" | ||||||
| /> | ||||||
| <OpenInV0Button name="8bit-status-effects" className="w-fit" /> | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix the OpenInV0Button name to match the registry entry. The name prop should be Apply this diff: - <OpenInV0Button name="8bit-status-effects" className="w-fit" />
+ <OpenInV0Button name="status-effect-indicator" className="w-fit" />📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Railly is the rabbit confused? :D There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||
| </div> | ||||||
| </div> | ||||||
| <StatusEffectsBlock /> | ||||||
| </div> | ||||||
| </div> | ||||||
| ); | ||||||
| } | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the OpenInV0Button name to match the registry entry.
Same issue as in the status-effects page. The name should be
"status-effect-indicator"to match the registry entry.Apply this diff:
📝 Committable suggestion
🤖 Prompt for AI Agents