Skip to content

Commit c26e392

Browse files
committed
feat: enable auto-transfer building materials
1 parent e1b3a10 commit c26e392

File tree

1 file changed

+16
-22
lines changed
  • src/routes/stw-operations/automation

1 file changed

+16
-22
lines changed

src/routes/stw-operations/automation/route.tsx

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ import { Switch } from '../../../components/ui/switch'
2424

2525
import { Route as RootRoute } from '../../__root'
2626

27-
import {
28-
useCustomizableMenuSettingsVisibility,
29-
useDevSettingsData,
30-
} from '../../../hooks/settings'
27+
import { useCustomizableMenuSettingsVisibility } from '../../../hooks/settings'
3128
import { useAutomationData } from './-hooks'
3229

3330
import { cn, parseCustomDisplayName } from '../../../lib/utils'
@@ -95,7 +92,6 @@ export function Content() {
9592
handleUpdateClaimAction,
9693
onSelectItem,
9794
} = useAutomationData()
98-
const devSettings = useDevSettingsData()
9995
const { getMenuOptionVisibility } =
10096
useCustomizableMenuSettingsVisibility()
10197

@@ -262,23 +258,21 @@ export function Content() {
262258
disabled={disabledActions}
263259
/>
264260
</div>
265-
{devSettings.transfer === true && (
266-
<div className="flex flex-grow items-center justify-between">
267-
<span>Auto-transfer mats</span>
268-
<Switch
269-
checked={current.actions.transferMats}
270-
onCheckedChange={
271-
!isLoading
272-
? handleUpdateClaimAction(
273-
'transferMats',
274-
account.accountId
275-
)
276-
: undefined
277-
}
278-
disabled={disabledActions}
279-
/>
280-
</div>
281-
)}
261+
<div className="flex flex-grow items-center justify-between">
262+
<span>Auto-transfer mats</span>
263+
<Switch
264+
checked={current.actions.transferMats}
265+
onCheckedChange={
266+
!isLoading
267+
? handleUpdateClaimAction(
268+
'transferMats',
269+
account.accountId
270+
)
271+
: undefined
272+
}
273+
disabled={disabledActions}
274+
/>
275+
</div>
282276
</div>
283277
</article>
284278
)

0 commit comments

Comments
 (0)