🆙 Better way to load the slider

This commit is contained in:
duckietm
2026-02-25 11:51:03 +01:00
parent 242f86bb90
commit faadd0cf31
18 changed files with 38 additions and 75 deletions
@@ -1,8 +1,7 @@
import { FC, useEffect, useState } from 'react';
import { FaPlus, FaTrash } from 'react-icons/fa';
import ReactSlider from 'react-slider';
import { LocalizeText, WiredFurniType } from '../../../../api';
import { Button, Text } from '../../../../common';
import { Button, Slider, Text } from '../../../../common';
import { useWired } from '../../../../hooks';
import { NitroInput } from '../../../../layout';
import { WiredActionBaseView } from './WiredActionBaseView';
@@ -103,8 +102,7 @@ export const WiredActionGiveRewardView: FC<{}> = props =>
Reward limit not set. Make sure rewards are badges or non-tradeable items.
</Text> }
{ limitEnabled &&
<ReactSlider
className={ 'nitro-slider' }
<Slider
max={ 1000 }
min={ 1 }
value={ rewardsLimit }