Support checking all
This commit is contained in:
parent
cb3288500a
commit
3df4d433f0
2 changed files with 20 additions and 2 deletions
|
@ -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}
|
||||
|
|
Reference in a new issue