Add nest endpoints and pages
This commit is contained in:
parent
359769244f
commit
6c85be72fa
12 changed files with 473 additions and 10 deletions
24
resources/scripts/components/admin/AdminCheckbox.tsx
Normal file
24
resources/scripts/components/admin/AdminCheckbox.tsx
Normal file
|
@ -0,0 +1,24 @@
|
|||
import Input from '@/components/elements/Input';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components/macro';
|
||||
import tw from 'twin.macro';
|
||||
|
||||
const Checkbox = styled(Input)`
|
||||
&& {
|
||||
${tw`border-neutral-500 bg-transparent`};
|
||||
|
||||
&:not(:checked) {
|
||||
${tw`hover:border-neutral-300`};
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export default ({ name }: { name: string }) => {
|
||||
return (
|
||||
<Checkbox
|
||||
name={'selectedItems'}
|
||||
value={name}
|
||||
type={'checkbox'}
|
||||
/>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue