diff --git a/src/Routes.tsx b/src/Routes.tsx index a96cc04..f29e90b 100644 --- a/src/Routes.tsx +++ b/src/Routes.tsx @@ -160,7 +160,7 @@ import SplitForgotPassword from 'pages/pages/authentication/split/ForgotPassword import SplitResetPassword from 'pages/pages/authentication/split/ResetPassword'; import SplitLockScreen from 'pages/pages/authentication/split/LockScreen'; import SplitTwoFA from 'pages/pages/authentication/split/TwoFA'; -import { Suspense, lazy } from 'react'; +import { Suspense, lazy, useState } from 'react'; import PhoenixLoader from 'components/common/PhoenixLoader'; import Migrations from 'pages/documentation/Migrations'; import Kanban from 'pages/apps/kanban/Kanban'; @@ -214,7 +214,42 @@ import TripCheckout from 'pages/apps/travel-agency/trip/Checkout'; import TripLayout from 'layouts/TripLayout'; import { Range } from 'react-range'; import PhoenixReactRange from './components/forms/PhoenixReactRange'; -import { Slider } from './module-dimmer/Slider'; +import { ProgressBar } from 'module-dimmer/ProgressBar'; +import { Button, Col, Row } from 'react-bootstrap'; + + + +function RangeSlider() { + const [values, setValues] = useState([0]); + return ( +
+
1d
+ setValues(val)} + trackHeight={'4px'} + classNames= {'phoenix-react-range-slim mb-4'} + /> +
255
+
+ + ) +} +function Channel() { + const [values, setValues] = useState([0]); + return ( + +
+ +
+ + ) +} const routes: RouteObject[] = [ { @@ -234,9 +269,14 @@ const routes: RouteObject[] = [ }, { element: ( -
- -
+ + + + + + + + ), path: '/monitor' }, diff --git a/src/components/forms/PhoenixReactRange.tsx b/src/components/forms/PhoenixReactRange.tsx index 5a2345f..a327ad8 100644 --- a/src/components/forms/PhoenixReactRange.tsx +++ b/src/components/forms/PhoenixReactRange.tsx @@ -3,7 +3,8 @@ import { Range, getTrackBackground } from 'react-range'; // import the types dir import { IRenderTrackParams, IRenderThumbParams, - IRenderMarkParams + IRenderMarkParams, + Direction } from 'react-range/lib/types'; import { useAppContext } from 'providers/AppProvider'; @@ -57,20 +58,25 @@ const PhoenixReactRange = ({ } = useAppContext(); const Track = ({ props, children }: IRenderTrackParams): React.ReactNode => (
-
{ {/*)}*/} {/*{navbarPosition === 'dual' && }*/} -
+
{/*