From 4d127a038bf768eded68aae3cfa5c1b12241bdac Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Fri, 27 Mar 2026 00:55:15 +0100 Subject: chore: normalize line endings --- legacy/components/properties/effect-properties.tsx | 116 ++++++++++----------- 1 file changed, 58 insertions(+), 58 deletions(-) (limited to 'legacy/components/properties/effect-properties.tsx') diff --git a/legacy/components/properties/effect-properties.tsx b/legacy/components/properties/effect-properties.tsx index 75fc30a1..78582961 100644 --- a/legacy/components/properties/effect-properties.tsx +++ b/legacy/components/properties/effect-properties.tsx @@ -1,58 +1,58 @@ -"use client"; - -import type { EffectElement } from "@/types/timeline"; -import { getEffect } from "@/lib/effects/registry"; -import { useEditor } from "@/hooks/use-editor"; -import { - Section, - SectionContent, - SectionHeader, - SectionFields, - SectionTitle, -} from "./section"; -import { EffectParamField } from "./effect-param-field"; - -export function EffectProperties({ - element, - trackId, -}: { - element: EffectElement; - trackId: string; -}) { - const editor = useEditor(); - const definition = getEffect({ effectType: element.effectType }); - - const previewParam = - ({ key }: { key: string }) => - (value: number | string | boolean) => - editor.timeline.previewElements({ - updates: [ - { - trackId, - elementId: element.id, - updates: { params: { ...element.params, [key]: value } }, - }, - ], - }); - - return ( -
- - {definition.name} - - - - {definition.params.map((param) => ( - editor.timeline.commitPreview()} - /> - ))} - - -
- ); -} +"use client"; + +import type { EffectElement } from "@/types/timeline"; +import { getEffect } from "@/lib/effects/registry"; +import { useEditor } from "@/hooks/use-editor"; +import { + Section, + SectionContent, + SectionHeader, + SectionFields, + SectionTitle, +} from "./section"; +import { EffectParamField } from "./effect-param-field"; + +export function EffectProperties({ + element, + trackId, +}: { + element: EffectElement; + trackId: string; +}) { + const editor = useEditor(); + const definition = getEffect({ effectType: element.effectType }); + + const previewParam = + ({ key }: { key: string }) => + (value: number | string | boolean) => + editor.timeline.previewElements({ + updates: [ + { + trackId, + elementId: element.id, + updates: { params: { ...element.params, [key]: value } }, + }, + ], + }); + + return ( +
+ + {definition.name} + + + + {definition.params.map((param) => ( + editor.timeline.commitPreview()} + /> + ))} + + +
+ ); +} -- cgit v1.3.1