Commit f8877b14 authored by Hines, Jesse's avatar Hines, Jesse
Browse files

Fix react warning

parent df059c84
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5,10 +5,10 @@ export interface InputProps extends HTMLProps<HTMLInputElement> {
  labelAlignment?: "vertical" | "horizontal";
}

export function Input(props: InputProps) {
export function Input({labelAlignment, ...props}: InputProps) {
  return (
    <div
      className={`${props.labelAlignment === "horizontal" ? "flex flex-row items-center" : "flex flex-col"} gap-2 ${props.label ? "h-20" : "h-11"}`}
      className={`${labelAlignment === "horizontal" ? "flex flex-row items-center" : "flex flex-col"} gap-2 ${props.label ? "h-20" : "h-11"}`}
    >
      {props.label && (
        <label htmlFor="text-input" className="pl-3 dark:text-neutral-200">
+2 −2
Original line number Diff line number Diff line
@@ -7,12 +7,12 @@ export interface NumberInputProps extends HTMLProps<HTMLDivElement> {
  labelAlignment?: "vertical" | "horizontal";
}

export function NumberInput(props: NumberInputProps) {
export function NumberInput({labelAlignment, ...props}: NumberInputProps) {
  return (
    <div
      className={
        props.className +
        ` ${props.labelAlignment === "horizontal" ? "flex flex-row items-center gap-2" : "flex flex-col"} ${props.label ? "h-20" : "h-11"}`
        ` ${labelAlignment === "horizontal" ? "flex flex-row items-center gap-2" : "flex flex-col"} ${props.label ? "h-20" : "h-11"}`
      }
    >
      {props.label && (