diff --git a/src/component/Main/Headerc.js b/src/component/Main/Headerc.js index 70fab4c..e35d73a 100644 --- a/src/component/Main/Headerc.js +++ b/src/component/Main/Headerc.js @@ -169,30 +169,94 @@ onClickClassChange = ({ key }) => { render() { const currentClass = authenticationService.currentClassNameValue; this.state.className = currentClass; - return ( -
- {authenticationService.currentUserValue?.role_id !== 4 ? -
- - e.preventDefault()}> - {this.state.className} + return ( +
+ {authenticationService.currentUserValue?.role_id !== 4 && ( +
+ + e.preventDefault()} + onMouseEnter={(e) => (e.currentTarget.style.opacity = "0.8")} + onMouseLeave={(e) => (e.currentTarget.style.opacity = "1")} + > + {this.state.className} -
: ""} -
+
+ )} - - e.preventDefault()} style={{ - color: '#0E3997', textAlign: 'right', backgroundColor: 'white', cursor: 'pointer', display: 'grid', placeItems: 'center' - }}> {this.state.language_code.toUpperCase()} - +
+ +
e.preventDefault()} + style={{ + cursor: "pointer", + color: "#0E3997", + fontWeight: 600, + fontSize: "15px", + display: "flex", + alignItems: "center", + gap: 6, + transition: "opacity 0.2s", + }} + onMouseEnter={(e) => (e.currentTarget.style.opacity = "0.8")} + onMouseLeave={(e) => (e.currentTarget.style.opacity = "1")} + > + {this.state.language_code.toUpperCase()}{" "} + +
-
-
- + +
); } + } \ No newline at end of file