Skip to content

Commit

Permalink
chore: rename sliderTypes->types
Browse files Browse the repository at this point in the history
  • Loading branch information
Arucard89 committed Jan 31, 2024
1 parent 7264beb commit e8c5db0
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Slider/BaseSlider/BaseSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Slider from 'rc-slider';
import type {SliderProps, SliderRef} from 'rc-slider';

import {blockNew} from '../../utils/cn';
import type {StyleModifiers} from '../sliderTypes';
import type {StyleModifiers} from '../types';

import './BaseSlider.scss';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Slider/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {blockNew} from '../utils/cn';

import {BaseSlider} from './BaseSlider/BaseSlider';
import {SliderTooltip} from './SliderTooltip/SliderTooltip';
import type {BaseSliderRefType, RcSliderValueType, SliderProps, SliderValue} from './sliderTypes';
import type {BaseSliderRefType, RcSliderValueType, SliderProps, SliderValue} from './types';
import {getInnerState} from './utils';

import './Slider.scss';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Slider/SliderTooltip/SliderTooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';

import {blockNew} from '../../utils/cn';
import type {StyleModifiers} from '../sliderTypes';
import type {StyleModifiers} from '../types';

import {SliderTooltipPin} from './SliderTooltipPin';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Slider/__stories__/SliderShowcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {Showcase} from '../../../demo/Showcase';
import {ShowcaseItem} from '../../../demo/ShowcaseItem';
import {blockNew} from '../../utils/cn';
import {Slider} from '../Slider';
import type {SliderProps} from '../sliderTypes';
import type {SliderProps} from '../types';

import './SliderShowcase.scss';

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/Slider/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {SliderProps as RcSliderProps} from 'rc-slider';

import {CLEAR_MARK_STYLE} from './constants';
import type {SliderInnerState, SliderProps} from './sliderTypes';
import type {SliderInnerState, SliderProps} from './types';

function prepareSingleValue({value, min, max}: {value?: number; min: number; max: number}) {
if (typeof value === 'undefined' || value < min) {
Expand Down

0 comments on commit e8c5db0

Please sign in to comment.