Skip to content

Commit

Permalink
refactor(slice-machine): rely on more specific useLab hook
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Oct 12, 2023
1 parent ee3739e commit c7ca906
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
} from "@src/hooks/useSliceMachineConfig";

import { LabsListItem } from "./LabsListItem";
import { useLab } from "./useLab";

export const LabsList: FC = () => {
const config = useSliceMachineConfig();
Expand Down Expand Up @@ -67,7 +68,7 @@ export const LabsList: FC = () => {
<Box flexDirection="column" gap={16}>
<LabsListItem
title="Legacy Slice Upgrader"
enabled={config.labs?.legacySliceUpgrader ?? false}
enabled={useLab("legacySliceUpgrader").enabled}
onToggle={(enabled) =>
void setLab("legacySliceUpgrader", "Legacy Slice Upgrader", enabled)
}
Expand Down

0 comments on commit c7ca906

Please sign in to comment.