-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add EmbedPage component and refactor EmbedWidget
- Introduced a new EmbedPage component that displays a loading state while fetching issues using the IssuesList component. - Removed the theme selection from EmbedWidget, simplifying the embed code generation. - Updated the embed code to remove the theme parameter and adjusted the height of the Textarea for better usability.
- Loading branch information
Showing
2 changed files
with
19 additions
and
19 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,16 @@ | ||
import { Suspense } from 'react' | ||
import { IssuesList } from "@/components/IssuesList" | ||
|
||
export default function EmbedPage() { | ||
return ( | ||
<Suspense fallback={ | ||
<div className="flex items-center justify-center p-4"> | ||
<div className="text-sm text-muted-foreground">Loading issues...</div> | ||
</div> | ||
}> | ||
<div className="p-2"> | ||
<IssuesList minimal={true} /> | ||
</div> | ||
</Suspense> | ||
) | ||
} |
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