Skip to content

Commit d1be4d0

Browse files
committed
to:SnaveSutit - "as you wish"
1 parent 1c294b2 commit d1be4d0

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/ui/dialogs/settings.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ const SettingInput = ({ namespace, name, template }) => {
271271
</span>
272272
</span>
273273
)}
274-
{tl(`${namespace}.setting.${name}.name`)}
275-
{DefaultSettings[namespace][name].global && (
274+
{SettingDef.name}
275+
{SettingDef.global && (
276276
<span
277277
style={{
278278
opacity: 0.8,
@@ -282,7 +282,7 @@ const SettingInput = ({ namespace, name, template }) => {
282282
{tl('animatedJava.settings.global')}
283283
</span>
284284
)}
285-
{DefaultSettings[namespace][name].optional && (
285+
{SettingDef.optional && (
286286
<span
287287
style={{
288288
opacity: 0.8,
@@ -301,11 +301,9 @@ const SettingInput = ({ namespace, name, template }) => {
301301
</div>
302302
)}
303303
<div className="setting_description">
304-
{tl(`${namespace}.setting.${name}.description`)
305-
.split('\n')
306-
.map((line, i) => (
307-
<p key={i}>{line}</p>
308-
))}
304+
{SettingDef.description.split('\n').map((line, i) => (
305+
<p key={i}>{line}</p>
306+
))}
309307
</div>
310308
</label>
311309
)
@@ -325,7 +323,7 @@ const SettingInput = ({ namespace, name, template }) => {
325323
}}
326324
namespace={namespace}
327325
name={name}
328-
definition={DefaultSettings[namespace][name]}
326+
definition={SettingDef}
329327
forceRerender={() => setRerender(Math.random())}
330328
{...(template.props || {})}
331329
>

0 commit comments

Comments
 (0)