Support checking all

This commit is contained in:
Dane Everitt 2020-07-11 17:09:54 -07:00
parent cb3288500a
commit 3df4d433f0
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 20 additions and 2 deletions

View file

@ -4,7 +4,7 @@ import { ServerContext } from '@/state/server';
import styled from 'styled-components/macro';
import Input from '@/components/elements/Input';
const Checkbox = styled(Input)`
export const FileActionCheckbox = styled(Input)`
&& {
${tw`border-neutral-500`};
@ -21,7 +21,7 @@ export default ({ name }: { name: string }) => {
return (
<label css={tw`flex-none p-4 absolute self-center z-30 cursor-pointer`}>
<Checkbox
<FileActionCheckbox
name={'selectedFiles'}
value={name}
checked={isChecked}