Skip to content

Commit

Permalink
Fixed prettier issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kudlajz committed Oct 31, 2024
1 parent e9e35da commit bab1d03
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/slate-editor/src/components/SearchInput/Panel.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type Placement } from '@popperjs/core';
import { type Placement } from '@popperjs/core';
import classNames from 'classnames';
import type { HTMLAttributes, ReactNode } from 'react';
import React, { forwardRef } from 'react';
Expand All @@ -14,10 +14,14 @@ export interface Props extends HTMLAttributes<HTMLDivElement> {
export const Panel = forwardRef<HTMLDivElement, Props>(
({ children, className, footer, placement = 'bottom', ...attributes }, forwardedRef) => {
return (
<div {...attributes} ref={forwardedRef} className={classNames(className, styles.Panel, {
[styles.top]: placement === 'top',
[styles.bottom]: placement==='bottom',
})}>
<div
{...attributes}
ref={forwardedRef}
className={classNames(className, styles.Panel, {
[styles.top]: placement === 'top',
[styles.bottom]: placement === 'bottom',
})}
>
{children}
{footer && <div className={styles.Footer}>{footer}</div>}
</div>
Expand Down

0 comments on commit bab1d03

Please sign in to comment.