fix paginator

This commit is contained in:
Jade (Rose) Rowland 2025-02-18 10:41:16 -05:00
parent 50f076084f
commit c210ea3f89
5 changed files with 22 additions and 29 deletions

View file

@ -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}
/>
);