Skip to content

Commit

Permalink
review: use mergeStyles fn
Browse files Browse the repository at this point in the history
  • Loading branch information
inomdzhon committed Nov 23, 2024
1 parent 1ce7b89 commit bb2f41e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vkui/src/components/FloatingArrow/FloatingArrow.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
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 @@ -60,7 +61,7 @@ export const FloatingArrow = ({

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

0 comments on commit bb2f41e

Please sign in to comment.