Skip to content

Commit 77b337b

Browse files
committed
Destructure deps
1 parent 4538b8f commit 77b337b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/perseus/src/components/graphie-movables.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@ const Label: any = GraphieClasses.createSimpleClass((graphie, props) => {
125125
coord = graphie.unscalePoint(coord);
126126
}
127127
let elem = null;
128-
const deps = getDependencies();
128+
const {JIPT} = getDependencies();
129129

130130
// If the label is rendered for a locale other than "en", push the label
131131
// element to an array. This array is used to lookup the label element
132132
// and processed with jipt('just in place translation', crowdin specific
133133
// program) to replace the passed in crowdin string with the translated
134134
// string. For "en" locale, the jipt processing is skipped.
135-
if (deps.JIPT.useJIPT) {
135+
if (JIPT.useJIPT) {
136136
elem = graphie.label(
137137
coord,
138138
props.text,
@@ -141,7 +141,7 @@ const Label: any = GraphieClasses.createSimpleClass((graphie, props) => {
141141
props.style,
142142
);
143143

144-
deps.JIPT.graphieMovablesJiptLabels.addLabel(elem, props.tex);
144+
JIPT.graphieMovablesJiptLabels.addLabel(elem, props.tex);
145145
} else {
146146
elem = graphie.label(
147147
coord,

0 commit comments

Comments
 (0)