mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-08-25 11:17:38 +02:00
Prefer arrow functions and callbacks (#1210)
This commit is contained in:
@@ -8,16 +8,14 @@ type FixedSideContainerProps = {
|
||||
className?: string;
|
||||
};
|
||||
|
||||
export function FixedSideContainer({
|
||||
export const FixedSideContainer = ({
|
||||
children,
|
||||
side,
|
||||
className,
|
||||
}: FixedSideContainerProps) {
|
||||
return (
|
||||
<div
|
||||
className={`FixedSideContainer FixedSideContainer_side_${side} ${className}`}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}: FixedSideContainerProps) => (
|
||||
<div
|
||||
className={`FixedSideContainer FixedSideContainer_side_${side} ${className}`}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
|
Reference in New Issue
Block a user