Fix component rendering for .ts components #60
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes across multiple files to update the import and usage of
SectionsList
tosectionList
from the@cuicui/ui/lib/section-list
module. Additionally, there are some minor improvements and refactorings in component files. The most important changes are summarized below:Updates to
sectionList
imports and usage:SectionsList
tosectionList
in the test filecomponent-categories.test.tsx
. [1] [2] [3]SectionsList
tosectionList
in the filepage.tsx
under various paths. (apps/website/src/app/(site)/[section]/[category]/page.tsxL4-R4, apps/website/src/app/(site)/[section]/[category]/page.tsxL18-R18, apps/website/src/app/(site)/[section]/[category]/page.tsxL41-R41)SectionsList
tosectionList
in the filesingle-component-section.tsx
. (apps/website/src/app/(site)/[section]/[category]/single-component-section.tsxL30-R30)SectionsList
tosectionList
in the filecard.tsx
. [1] [2]SectionsList
tosectionList
in the filepage.tsx
under thepreview
directory. (apps/website/src/app/preview/[section]/[category]/[component]/[variant]/page.tsxL1-R1, apps/website/src/app/preview/[section]/[category]/[component]/[variant]/page.tsxL12-R12, apps/website/src/app/preview/[section]/[category]/[component]/[variant]/page.tsxL73-R73)Minor improvements and refactorings:
component
prop handling insingle-component-section.tsx
to remove unnecessary object spread. (apps/website/src/app/(site)/[section]/[category]/single-component-section.tsxL30-R30)MainMenuCardContent
component to remove thecategory
prop from thecreateElement
call.ComponentTabRenderer
to useisValidElement
for rendering components. [1] [2] [3]name
,description
) to themacOsDropdownComponent
object incomponent.ts
. [1] [2]BarCodeGeneratorComponent
incomponent.ts
to use named exports forPreviewBarCodeGenerator
. [1] [2]