fix adaptive size

This commit is contained in:
DmitriyB
2022-07-29 17:25:39 +05:00
parent dcedd8d7ce
commit 70dbfe309f
5 changed files with 57 additions and 6 deletions
+7 -3
View File
@@ -52,7 +52,7 @@ export const MainPart: React.FC<TProps> = React.memo((props) => {
if(planContent && !isRemoveLastElementHistry.current) {
history.current.push(planContent);
isRemoveLastElementHistry.current = false;
console.log(history.current.length, 'добавили 1')
// console.log(history.current.length, 'добавили 1')
}
}, [planContent])
@@ -77,7 +77,7 @@ export const MainPart: React.FC<TProps> = React.memo((props) => {
setPlanContent(history.current[history.current.length - 2]);
history.current.splice(history.current.length - 1, 1);
isRemoveLastElementHistry.current = true;
console.log(history.current.length, 'убрали 1')
// console.log(history.current.length, 'убрали 1')
}
}
@@ -216,7 +216,11 @@ export const MainPart: React.FC<TProps> = React.memo((props) => {
return <div className="main-part-container">
<div className="background-image"></div>
<MainPartHeader changeLang={(lang) => changeLang(lang)} onClickLogo={toMain}/>
<MainPartHeader
changeLang={(lang) => changeLang(lang)}
onClickLogo={toMain}
isSmallLogo={planContent ? true : false}
/>
<SwitchTransition mode="out-in">
<CSSTransition
key={changeContent.current}