Skip to content

Commit

Permalink
chore: rename to a more appropriate static layout
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-golovanov committed Dec 20, 2024
1 parent 5022e10 commit b61d77a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
8 changes: 2 additions & 6 deletions app/client/src/pages/Editor/IDE/Layout/StaticLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const LayoutContainer = styled.div<{ name: string }>`
overflow: auto;
`;

function UnanimatedLayout() {
export const StaticLayout = React.memo(() => {
const isProtectedMode = useSelector(protectedModeSelector);
const { areas, columns } = useGridLayoutTemplate();

Expand Down Expand Up @@ -61,8 +61,4 @@ function UnanimatedLayout() {
<BottomBar />
</>
);
}

const MemoUanimatedLayout = React.memo(UnanimatedLayout);

export { MemoUanimatedLayout as UnanimatedLayout };
});
2 changes: 1 addition & 1 deletion app/client/src/pages/Editor/IDE/Layout/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { AnimatedLayout } from "./AnimatedLayout";
export { UnanimatedLayout } from "./UnanimatedLayout";
export { StaticLayout } from "./StaticLayout";
4 changes: 2 additions & 2 deletions app/client/src/pages/Editor/IDE/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { selectFeatureFlagCheck } from "ee/selectors/featureFlagsSelectors";
import { AnimatedLayout, UnanimatedLayout } from "./Layout";
import { AnimatedLayout, StaticLayout } from "./Layout";
import { useSelector } from "react-redux";
import type { AppState } from "ee/reducers";
import { FEATURE_FLAG } from "ee/entities/FeatureFlag";
Expand All @@ -22,7 +22,7 @@ function IDE() {
return <AnimatedLayout />;
}

return <UnanimatedLayout />;
return <StaticLayout />;
}

IDE.displayName = "AppIDE";
Expand Down

0 comments on commit b61d77a

Please sign in to comment.