Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move transforms section behind a flag #3810

Merged
merged 1 commit into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import { humanizeString } from "~/shared/string-utils";
import { getStyleSource } from "../../shared/style-info";
import { PropertyName } from "../../shared/property-name";
import { getDots } from "../../shared/collapsible-section";
import { isFeatureEnabled } from "@webstudio-is/feature-flags";

export const transformPanels = [
"translate",
Expand All @@ -60,8 +61,13 @@ export const properties = [
] satisfies Array<StyleProperty>;

export const Section = (props: SectionProps) => {
const { currentStyle, createBatchUpdate } = props;
const [isOpen, setIsOpen] = useState(true);

if (isFeatureEnabled("transforms") === false) {
return;
}

const { currentStyle, createBatchUpdate } = props;
const translateStyleSource = getStyleSource(currentStyle["translate"]);
const scaleStyleSource = getStyleSource(currentStyle["scale"]);
const rotateAndSkewStyleSrouce = getStyleSource(currentStyle["transform"]);
Expand Down
1 change: 1 addition & 0 deletions packages/feature-flags/src/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export const cms = false;
export const cssVars = false;
export const filters = false;
export const xmlElement = false;
export const transforms = false;
Loading