Skip to content

Commit

Permalink
fix: rename blockNew->block
Browse files Browse the repository at this point in the history
  • Loading branch information
Arucard89 committed Feb 7, 2024
1 parent 00d1480 commit 3e22f4d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/components/Slider/BaseSlider/BaseSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import React from 'react';
import Slider from 'rc-slider';
import type {SliderProps, SliderRef} from 'rc-slider';

import {blockNew} from '../../utils/cn';
import {block} from '../../utils/cn';
import type {StateModifiers} from '../types';

import './BaseSlider.scss';

const b = blockNew('base-slider');
const b = block('base-slider');

type BaseSliderProps = {stateModifiers: StateModifiers} & Omit<
SliderProps,
Expand Down
4 changes: 2 additions & 2 deletions src/components/Slider/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';

import debounce from 'lodash/debounce';

import {blockNew} from '../utils/cn';
import {block} from '../utils/cn';

import {BaseSlider} from './BaseSlider/BaseSlider';
import {SliderTooltip} from './SliderTooltip/SliderTooltip';
Expand All @@ -11,7 +11,7 @@ import {getInnerState} from './utils';

import './Slider.scss';

const b = blockNew('slider');
const b = block('slider');

export const Slider = React.forwardRef(function Slider(
{
Expand Down
4 changes: 2 additions & 2 deletions src/components/Slider/SliderTooltip/SliderTooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react';

import {blockNew} from '../../utils/cn';
import {block} from '../../utils/cn';
import type {StateModifiers} from '../types';

import {SliderTooltipPin} from './SliderTooltipPin';

import './SliderTooltip.scss';

const b = blockNew('slider-tooltip');
const b = block('slider-tooltip');

type SliderTooltipProps = {
value: number;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Slider/__stories__/SliderShowcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import React from 'react';

import {Showcase} from '../../../demo/Showcase';
import {ShowcaseItem} from '../../../demo/ShowcaseItem';
import {blockNew} from '../../utils/cn';
import {block} from '../../utils/cn';
import {Slider} from '../Slider';
import type {SliderProps} from '../types';

import './SliderShowcase.scss';

const b = blockNew('slider-showcase');
const b = block('slider-showcase');
const blockCn = b('block');
const rowCn = b('row');

Expand Down

0 comments on commit 3e22f4d

Please sign in to comment.