Skip to content

Commit

Permalink
refactor: Convert _RangeLimitsjsx to TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Jul 5, 2024
1 parent f657ebe commit d012ac6
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import React from "react";

import { renderLabel } from "../../util/label";

const RangeLimits = ({ minVal, maxVal, labels}) => {
interface RangeLimitsProps {
minVal: string;
maxVal: string;
labels?: string[];
}

const RangeLimits = ({ minVal, maxVal, labels }: RangeLimitsProps) => {
return (
<div className="limits">
{ labels ?
{labels ?
<div className="labels">
{labels.map(label => (
<span>{renderLabel(label)}</span>
Expand Down

0 comments on commit d012ac6

Please sign in to comment.