Fix select all channels checkbox (#838)

* Fix select all channels checkbox

* Clarify checkout description
This commit is contained in:
Krzysztof Wolski 2020-11-18 15:32:22 +01:00 committed by GitHub
parent 01f92310bf
commit 6d31be7c2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -1542,8 +1542,8 @@
"src_dot_components_dot_ChannelsAvailabilityContent_dot_1866672276": { "src_dot_components_dot_ChannelsAvailabilityContent_dot_1866672276": {
"string": "No Channels found" "string": "No Channels found"
}, },
"src_dot_components_dot_ChannelsAvailabilityContent_dot_3630122739": { "src_dot_components_dot_ChannelsAvailabilityContent_dot_3488518738": {
"string": "Available at all channels" "string": "Select all channels"
}, },
"src_dot_components_dot_ChannelsAvailabilityContent_dot_3754190292": { "src_dot_components_dot_ChannelsAvailabilityContent_dot_3754190292": {
"string": "Channels A to Z" "string": "Channels A to Z"

View file

@ -60,12 +60,12 @@ export const ChannelsAvailabilityContent: React.FC<ChannelsAvailabilityContentPr
{!!toggleAll && ( {!!toggleAll && (
<> <>
<ControlledCheckbox <ControlledCheckbox
checked={selected !== 0} checked={selected === channels?.length}
name="allchannels" name="allChannels"
label={ label={
toggleAllText || ( toggleAllText || (
<Typography className={classes.label}> <Typography className={classes.label}>
<FormattedMessage defaultMessage="Available at all channels" /> <FormattedMessage defaultMessage="Select all channels" />
</Typography> </Typography>
) )
} }