Repository navigation
refactor(propel): move off the deprecated Base UI beta, so the apps stop shipping two copies #256
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
Changes from all commits
7ba28db
635289d
058d5b5
51a8a6b
c9a6245
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 |
|---|---|---|
|
|
@@ -12,7 +12,7 @@ import useSWR from "swr"; | |
| import { useTranslation } from "@pace/i18n"; | ||
| import type { TIssue } from "@pace/types"; | ||
| import { EIssueServiceType } from "@pace/types"; | ||
| import { Loader } from "@pace/ui"; | ||
| import { Skeleton } from "@pace/propel/skeleton"; | ||
| // assets | ||
| import emptyIssueDark from "@/app/assets/empty-state/search/issues-dark.webp?url"; | ||
| import emptyIssueLight from "@/app/assets/empty-state/search/issues-light.webp?url"; | ||
|
|
@@ -107,20 +107,20 @@ export const IssueDetailsPage = observer(function IssueDetailsPage({ params }: R | |
|
|
||
| if (issueLoader) { | ||
| return ( | ||
| <Loader className="flex h-full gap-5 p-5"> | ||
| <Skeleton className="flex h-full gap-5 p-5"> | ||
|
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. React Doctor · 2 copies of this 11-node JSX tree appear across 2 files, repeating about 14 lines. Composition path: IssueDetailsPage > Skeleton. Fix → Consider extracting a shared component if these trees represent the same UI concept. Keep them separate when the resemblance is incidental or the variants are likely to evolve independently. |
||
| <div className="basis-2/3 space-y-2"> | ||
| <Loader.Item height="30px" width="40%" /> | ||
| <Loader.Item height="15px" width="60%" /> | ||
| <Loader.Item height="15px" width="60%" /> | ||
| <Loader.Item height="15px" width="40%" /> | ||
| <Skeleton.Item height="30px" width="40%" /> | ||
| <Skeleton.Item height="15px" width="60%" /> | ||
| <Skeleton.Item height="15px" width="60%" /> | ||
| <Skeleton.Item height="15px" width="40%" /> | ||
| </div> | ||
| <div className="basis-1/3 space-y-3"> | ||
| <Loader.Item height="30px" /> | ||
| <Loader.Item height="30px" /> | ||
| <Loader.Item height="30px" /> | ||
| <Loader.Item height="30px" /> | ||
| <Skeleton.Item height="30px" /> | ||
| <Skeleton.Item height="30px" /> | ||
| <Skeleton.Item height="30px" /> | ||
| <Skeleton.Item height="30px" /> | ||
| </div> | ||
| </Loader> | ||
| </Skeleton> | ||
| ); | ||
| } | ||
|
|
||
|
|
||
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.
React Doctor ·
react-doctor/duplicate-jsx-subtree(warning)2 copies of this 6-node JSX tree appear across 2 files, repeating about 8 lines. Composition path: FullScreenPeekView > div > div > Skeleton.
Fix → Consider extracting a shared component if these trees represent the same UI concept. Keep them separate when the resemblance is incidental or the variants are likely to evolve independently.
Docs