Skip to content

Commit

Permalink
fixed styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rathorevaibhav committed Nov 30, 2020
1 parent 9c89a68 commit ec2422f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions src/components/UI/Form/Checkbox/Checkbox.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
.Checkbox {
.CheckboxColor {
color: #073f24 !important;
}

.CheckboxColor {
color: green;
.Label {
font-weight: 500 !important;
color: #073f24;
font-size: 16px;
}
5 changes: 4 additions & 1 deletion src/components/UI/Form/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const Checkbox: React.SFC<CheckboxProps> = (props) => {
control={
<CheckboxElement
data-testid="checkboxLabel"
className={styles.CheckboxColor}
classes={{ colorPrimary: styles.CheckboxColor }}
{...field}
color="primary"
checked={field.value ? field.value : false}
Expand All @@ -32,6 +32,9 @@ export const Checkbox: React.SFC<CheckboxProps> = (props) => {
}
labelPlacement="end"
label={title}
classes={{
label: styles.Label,
}}
/>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions src/containers/StaffManagement/StaffManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const StaffManagement: React.SFC<StaffManagementProps> = ({ match }) => {
let formFields: any = [];

const handleRolesChange = (value: any) => {
const hasStaffRole = value.map((role: any) => role.label).includes('Staff');
const hasStaffRole = value.label === 'Staff';
if (hasStaffRole) {
setStaffRole(true);
} else {
Expand Down Expand Up @@ -205,7 +205,7 @@ export const StaffManagement: React.SFC<StaffManagementProps> = ({ match }) => {
{
component: Checkbox,
name: 'isRestricted',
title: 'Can chat with group contacts only',
title: 'Can chat with contacts from assigned group only',
},
];
}
Expand Down

0 comments on commit ec2422f

Please sign in to comment.