mirror of
https://github.com/strapi/strapi.git
synced 2025-08-10 17:58:07 +00:00
Fix naming
This commit is contained in:
parent
860c2e0789
commit
d9a81c7011
@ -12,7 +12,7 @@ import UpperFirst from '../UpperFirst';
|
|||||||
import DropdownInfos from './DropdownInfos';
|
import DropdownInfos from './DropdownInfos';
|
||||||
|
|
||||||
const ModalHeader = ({ headerId, headers }) => {
|
const ModalHeader = ({ headerId, headers }) => {
|
||||||
const shouldDisplayDrodDown = headers.length > 3;
|
const shouldDisplayDropDown = headers.length > 3;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section>
|
<section>
|
||||||
@ -38,7 +38,7 @@ const ModalHeader = ({ headerId, headers }) => {
|
|||||||
<Icon type={iconType} />
|
<Icon type={iconType} />
|
||||||
);
|
);
|
||||||
|
|
||||||
if (shouldDisplayDrodDown && index === 1) {
|
if (shouldDisplayDropDown && index === 1) {
|
||||||
return (
|
return (
|
||||||
<Fragment key={index}>
|
<Fragment key={index}>
|
||||||
<IconWrapper>
|
<IconWrapper>
|
||||||
@ -52,7 +52,7 @@ const ModalHeader = ({ headerId, headers }) => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (shouldDisplayDrodDown && index === 2 && headers.length > 4) {
|
if (shouldDisplayDropDown && index === 2 && headers.length > 4) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user