diff --git a/tgui/packages/tgui/interfaces/ChemMaster.tsx b/tgui/packages/tgui/interfaces/ChemMaster.tsx index d5de45c4d934..6b911c77ee7a 100644 --- a/tgui/packages/tgui/interfaces/ChemMaster.tsx +++ b/tgui/packages/tgui/interfaces/ChemMaster.tsx @@ -56,8 +56,8 @@ type Container = { volume: number; }; -export const ChemMaster = (props, context) => { - const { data } = useBackend(context); +export const ChemMaster = (props) => { + const { data } = useBackend(); const { reagentAnalysisMode } = data; return ( @@ -68,8 +68,8 @@ export const ChemMaster = (props, context) => { ); }; -const ChemMasterContent = (props, context) => { - const { act, data } = useBackend(context); +const ChemMasterContent = (props) => { + const { act, data } = useBackend(); const { isPrinting, printingProgress, @@ -89,7 +89,7 @@ const ChemMasterContent = (props, context) => { suggestedContainer, } = data; - const [itemCount, setItemCount] = useLocalState(context, 'itemCount', 1); + const [itemCount, setItemCount] = useLocalState('itemCount', 1); return ( @@ -260,8 +260,8 @@ const ChemMasterContent = (props, context) => { ); }; -const ReagentEntry = (props, context) => { - const { data, act } = useBackend(context); +const ReagentEntry = (props) => { + const { data, act } = useBackend(); const { chemical, transferTo } = props; const { isPrinting } = data; return ( @@ -342,8 +342,8 @@ const ReagentEntry = (props, context) => { ); }; -const ContainerButton = ({ container, category }, context) => { - const { act, data } = useBackend(context); +const ContainerButton = ({ container, category }) => { + const { act, data } = useBackend(); const { isPrinting, selectedContainerRef } = data; const isPillPatch = ['pills', 'patches'].includes(category.name); return ( @@ -375,8 +375,8 @@ const ContainerButton = ({ container, category }, context) => { ) as any; }; -const AnalysisResults = (props, context) => { - const { act, data } = useBackend(context); +const AnalysisResults = (props) => { + const { act, data } = useBackend(); const { name, state, diff --git a/tgui/packages/tgui/interfaces/ChemPress.tsx b/tgui/packages/tgui/interfaces/ChemPress.tsx index 088833ae7e68..4ca021bfa8b8 100644 --- a/tgui/packages/tgui/interfaces/ChemPress.tsx +++ b/tgui/packages/tgui/interfaces/ChemPress.tsx @@ -23,8 +23,8 @@ type Data = { packaging_type: string; }; -export const ChemPress = (props, context) => { - const { act, data } = useBackend(context); +export const ChemPress = (props) => { + const { act, data } = useBackend(); const { current_volume, product_name, @@ -35,7 +35,6 @@ export const ChemPress = (props, context) => { packaging_type, } = data; const [categoryName, setCategoryName] = useLocalState( - context, 'categoryName', packaging_category );