diff --git a/teachertool/src/components/RubricWorkspace.tsx b/teachertool/src/components/RubricWorkspace.tsx index 92af155282b3..8fcc3781e297 100644 --- a/teachertool/src/components/RubricWorkspace.tsx +++ b/teachertool/src/components/RubricWorkspace.tsx @@ -58,21 +58,6 @@ const WorkspaceTabPanels: React.FC = () => { ); }; -const WorkspaceAutorun: React.FC = () => { - const { state: teacherTool } = useContext(AppStateContext); - const { autorun } = teacherTool; - - const onChange = (checked: boolean) => { - setAutorun(checked); - }; - - return ( - - - - ); -}; - function getActionMenuItems(tab: TabName): MenuItem[] { switch (tab) { case "rubric": @@ -97,23 +82,27 @@ function getActionMenuItems(tab: TabName): MenuItem[] { const WorkspaceToolbarButtons: React.FC = () => { const { state: teacherTool } = useContext(AppStateContext); - const { activeTab } = teacherTool; + const { activeTab, autorun } = teacherTool; const actionItems = getActionMenuItems(activeTab); + const onAutorunChange = (checked: boolean) => { + setAutorun(checked); + }; + return ( {activeTab === "results" && ( console.log("Print")} /> )} - + {/* Conditional buttons go above this line */} + - ); @@ -124,7 +113,7 @@ interface IProps {} export const RubricWorkspace: React.FC = () => { return (
- } center={} right={} /> + } right={} />
); diff --git a/teachertool/src/components/styling/RubricWorkspace.module.scss b/teachertool/src/components/styling/RubricWorkspace.module.scss index 540573c58342..29fb1b18f501 100644 --- a/teachertool/src/components/styling/RubricWorkspace.module.scss +++ b/teachertool/src/components/styling/RubricWorkspace.module.scss @@ -14,8 +14,4 @@ div[class*="tt-tabview"] { flex: 1 1 0%; } - - div[class*="tt-toolbar-center"] { - flex-grow: 1; - } }