Skip to content

Commit

Permalink
Fixes uikit 6 updating (#175)
Browse files Browse the repository at this point in the history
Co-authored-by: Maksim Sitnikov <[email protected]>
  • Loading branch information
imsitnikov and Maksim Sitnikov authored Mar 10, 2024
1 parent a954a0b commit b0d41a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/MDXRenderer/MDXRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const componentsAvailableInMDX: MDXComponents = {
ExampleBlock,
UIKitExamples,
DateComponentsExamples,
React: React as unknown as Record<string, MDXComponents>,
UIKit: UIKit as unknown as Record<string, MDXComponents>,
Components: Components as unknown as Record<string, MDXComponents>,
DateComponents: DateComponents as unknown as Record<string, MDXComponents>,
Expand Down
2 changes: 1 addition & 1 deletion src/components/SandboxComponent/SandboxComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const SandboxComponent: React.FC<ComponentProps> = ({componentId, libId})
}

return (
<ThemeProvider theme={theme} rootClassName={b('wrapper')}>
<ThemeProvider theme={theme} rootClassName={b('wrapper', null, 'sandbox')}>
<div className={b()}>
<div className={b('component', {theme})}>
{DynamicComponent && <DynamicComponent {...componentProps} />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from 'react';
export const ProgressComponent = (props: ProgressProps) => {
return (
<div style={{width: '30%'}}>
<Progress {...props} />
<Progress {...props} value={Number(props.value)} />
</div>
);
};

0 comments on commit b0d41a9

Please sign in to comment.