From ecb6ac796b7499c140f562199edb8780f535e475 Mon Sep 17 00:00:00 2001 From: Jeremy Wiebe Date: Mon, 18 Dec 2023 15:54:02 -0800 Subject: [PATCH] Destructure deps --- packages/perseus/src/components/graphie-movables.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/perseus/src/components/graphie-movables.ts b/packages/perseus/src/components/graphie-movables.ts index 544701fe350..0730d0c420f 100644 --- a/packages/perseus/src/components/graphie-movables.ts +++ b/packages/perseus/src/components/graphie-movables.ts @@ -125,14 +125,14 @@ const Label: any = GraphieClasses.createSimpleClass((graphie, props) => { coord = graphie.unscalePoint(coord); } let elem = null; - const deps = getDependencies(); + const {JIPT} = getDependencies(); // If the label is rendered for a locale other than "en", push the label // element to an array. This array is used to lookup the label element // and processed with jipt('just in place translation', crowdin specific // program) to replace the passed in crowdin string with the translated // string. For "en" locale, the jipt processing is skipped. - if (deps.JIPT.useJIPT) { + if (JIPT.useJIPT) { elem = graphie.label( coord, props.text, @@ -141,7 +141,7 @@ const Label: any = GraphieClasses.createSimpleClass((graphie, props) => { props.style, ); - deps.JIPT.graphieMovablesJiptLabels.addLabel(elem, props.tex); + JIPT.graphieMovablesJiptLabels.addLabel(elem, props.tex); } else { elem = graphie.label( coord,