1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 07:49:41 +02:00

feat(namespace): migrate create ns to react [EE-2226] (#10377)

This commit is contained in:
Ali 2023-10-11 20:32:02 +01:00 committed by GitHub
parent 31bcba96c6
commit 7218eb0892
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
83 changed files with 1869 additions and 358 deletions

View file

@ -6,10 +6,16 @@ export function SliderWithInput({
value,
onChange,
max,
step = 1,
dataCy,
visibleTooltip = false,
}: {
value: number;
onChange: (value: number) => void;
max: number;
dataCy: string;
step?: number;
visibleTooltip?: boolean;
}) {
return (
<div className="flex items-center gap-4">
@ -22,7 +28,9 @@ export function SliderWithInput({
value={value}
min={0}
max={max}
step={256}
step={step}
dataCy={`${dataCy}Slider`}
visibleTooltip={visibleTooltip}
/>
</div>
)}
@ -33,6 +41,7 @@ export function SliderWithInput({
value={value}
onChange={(e) => onChange(e.target.valueAsNumber)}
className="w-32"
data-cy={`${dataCy}Input`}
/>
</div>
);