fix paginator
This commit is contained in:
parent
50f076084f
commit
c210ea3f89
5 changed files with 22 additions and 29 deletions
|
|
@ -1,14 +1,10 @@
|
|||
import { cn } from 'tailwind_utils.mjs';
|
||||
// type TextboxProps = {
|
||||
// onChange: (val: string | number) => void;
|
||||
// ...inputProps
|
||||
// }
|
||||
export function Textbox(props) {
|
||||
const {onChange, className, ...inputProps} = props
|
||||
|
||||
export function Textbox({ onChange, className, ...inputProps }) {
|
||||
return (
|
||||
<input
|
||||
className={cn('p-1 bg-background rounded-md my-2 border-foreground', props.className)}
|
||||
onChange={(e) => props.onChange(e.target.value)}
|
||||
className={cn('p-1 bg-background rounded-md my-2 border-foreground', className)}
|
||||
onChange={(e) => onChange(e.target.value)}
|
||||
{...inputProps}
|
||||
/>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue