Change range input from Input to TextInput

Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
Julius Volz 2024-09-04 20:43:33 +02:00
parent d36e049d79
commit 1f3de9c599

View file

@ -1,5 +1,5 @@
import { FC, useEffect, useState } from "react";
import { ActionIcon, Group, Input } from "@mantine/core";
import { ActionIcon, Group, Text, TextInput } from "@mantine/core";
import { IconMinus, IconPlus } from "@tabler/icons-react";
import {
formatPrometheusDuration,
@ -78,7 +78,7 @@ const RangeInput: FC<RangeInputProps> = ({ range, onChangeRange }) => {
return (
<Group gap={5}>
<Input
<TextInput
title="Range"
value={rangeInput}
onChange={(event) => setRangeInput(event.currentTarget.value)}