Skip to content

Commit

Permalink
fix: adjust controls caption
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Aug 8, 2020
1 parent e0b8023 commit 4f045b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/pages/src/ClassicPage/ClassicPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const ClassicPage: FC = () => {
controlsCount <= threshold &&
(propsCount === 0 ||
(controlsCount < propsCount && propsCount >= threshold));
const mixedControls = !splitControls && controlsCount === propsCount;
return (
<div>
<PackageVersion />
Expand All @@ -51,8 +52,8 @@ export const ClassicPage: FC = () => {
)}
<PropsTable
of="."
title="Properties"
flat={propsCount <= threshold || !splitControls}
title={mixedControls ? 'Controls' : 'Properties'}
flat={propsCount <= threshold || mixedControls}
visibility={splitControls ? 'info' : 'all'}
/>
<ComponentDeps id="." title="External dependencies" />
Expand Down

0 comments on commit 4f045b4

Please sign in to comment.