Skip to content

Commit

Permalink
chore: rm cls dep
Browse files Browse the repository at this point in the history
  • Loading branch information
leonwgc committed Apr 22, 2024
1 parent 81df869 commit 4afb85c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Popover.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import clsx from 'clsx';
import React, { useCallback, useLayoutEffect, useMemo, useRef, useState } from 'react';
import ReactDOM from 'react-dom';
import IconClose from './IconClose';
Expand Down Expand Up @@ -172,7 +171,7 @@ const Popover = (props: PopoverProps): React.ReactElement => {
<div
{...rest}
ref={popoverRef}
className={clsx(className, 'w-popover')}
className={`w-popover ${className}`}
style={{
position: 'absolute',
background: '#fff',
Expand All @@ -185,7 +184,7 @@ const Popover = (props: PopoverProps): React.ReactElement => {
>
{arrow && (
<div
className={clsx('w-popover__arrow')}
className={'w-popover__arrow'}
style={{
position: 'absolute',
width: 6,
Expand All @@ -200,7 +199,7 @@ const Popover = (props: PopoverProps): React.ReactElement => {

{closable && (
<IconClose
className={clsx('w-popover__close')}
className={'w-popover__close'}
onClick={onClose}
style={{
position: 'absolute',
Expand Down

0 comments on commit 4afb85c

Please sign in to comment.