Skip to content

Commit

Permalink
feat(FloatingReview): use baseStyle by RootComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
inomdzhon committed Nov 25, 2024
1 parent 983a207 commit 395fca2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/vkui/src/components/FloatingArrow/FloatingArrow.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as React from 'react';
import { classNames } from '@vkontakte/vkjs';
import { mergeStyle } from '../../helpers/mergeStyle';
import type { Placement } from '../../lib/floating';
import type { HasDataAttribute, HTMLAttributesWithRootRef } from '../../types';
import { RootComponent } from '../RootComponent/RootComponent';
Expand Down Expand Up @@ -48,7 +47,6 @@ export const FloatingArrow = ({
iconStyle,
iconClassName,
placement = 'bottom',
style,
Icon = DefaultIcon,
...restProps
}: FloatingArrowProps): React.ReactNode => {
Expand All @@ -61,7 +59,7 @@ export const FloatingArrow = ({

return (
<RootComponent
style={mergeStyle(arrowStyles, style)}
baseStyle={arrowStyles}
baseClassName={classNames(styles.host, arrowPlacement && placementClassNames[arrowPlacement])}
{...restProps}
>
Expand Down

0 comments on commit 395fca2

Please sign in to comment.