You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
var compatibleLayout = function compatibleLayout(layout) {
|
|
if (!layout) {
|
|
return layout;
|
|
}
|
|
|
|
var layoutEnum = ['sidemenu', 'topmenu'];
|
|
|
|
if (layoutEnum.includes(layout)) {
|
|
return layout.replace('menu', '');
|
|
}
|
|
|
|
return layout;
|
|
};
|
|
|
|
export default compatibleLayout; |