Skip to content

Commit

Permalink
make suffix an element
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin committed Jan 2, 2024
1 parent ecbc704 commit bf7cb8c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/lib/lemon-ui/LemonInput/LemonInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface LemonInputPropsBase
/** Element to prefix input field */
prefix?: React.ReactElement | null
/** Element to suffix input field */
suffix?: React.ReactElement | string | null
suffix?: React.ReactElement | null
/** Whether input field is disabled */
disabled?: boolean
/** Whether input field is full width */
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/scenes/experiments/ExperimentPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export function ExperimentPreview({
min={1}
max={sliderMaxValue}
defaultValue={5}
suffix="%"
suffix={<span>%</span>}
value={minimumDetectableChange}
onChange={(value) => {
setExperiment({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export function FeatureFlagReleaseConditions({
value={group.rollout_percentage != null ? group.rollout_percentage : 100}
min={0}
max={100}
suffix="%"
suffix={<span>%</span>}
/>{' '}
of <b>{aggregationTargetName}</b> in this set.{' '}
</div>
Expand Down

0 comments on commit bf7cb8c

Please sign in to comment.