Skip to content

Commit

Permalink
changed the [TA My Teams] slider to look more android like
Browse files Browse the repository at this point in the history
  • Loading branch information
aldoeve committed Jan 31, 2025
1 parent 95cad14 commit ffca0f3
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion FrontEndReact/src/View/Admin/View/CompleteAssessmentTask/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ class Form extends Component {
this.shouldTabsCategoriesRender = (renderObject) => {
const {hideUnits, consistentValidUnit} = this.state;
const tabToDefualtTo = consistentValidUnit !== null;
// {hideUnits} holds precedence.
return (
( (hideUnits && tabToDefualtTo) || (!hideUnits) )
&& renderObject
Expand Down Expand Up @@ -389,7 +390,22 @@ class Form extends Component {
control={
<Switch
checked={this.state.hideUnits}
onChange={(event) => this.hideTabs(event)}
onChange={(event) => this.hideTabs(event)}
sx={{
'& .MuiSwitch-track': {
width: '2.6rem',
height: '1.2rem',
borderRadius: '0.6rem',
},
'& .MuiSwitch-thumb': {
width: '1rem',
height: '1rem',
margin: '0.1rem',
},
'& .MuiSwitch-switchBase': {
top: '0.17rem',
},
}}
/>
}
label={"MY TEAMS"}
Expand Down

0 comments on commit ffca0f3

Please sign in to comment.