mostly formatting, dependency fix
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
import React from "react";
|
||||
import React from 'react';
|
||||
|
||||
interface DropIndicatorProps {
|
||||
side: "left" | "right" | "end";
|
||||
side: 'left' | 'right' | 'end';
|
||||
color: string;
|
||||
}
|
||||
|
||||
const DropIndicator: React.FC<DropIndicatorProps> = ({ side, color }) => {
|
||||
const isEnd = side === "end";
|
||||
const isEnd = side === 'end';
|
||||
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
position: "absolute",
|
||||
left: side === "left" ? "-4px" : isEnd ? "8px" : undefined,
|
||||
right: side === "right" ? "-4px" : undefined,
|
||||
top: "4px",
|
||||
bottom: "4px",
|
||||
width: "3px",
|
||||
borderRadius: "999px",
|
||||
position: 'absolute',
|
||||
left: side === 'left' ? '-4px' : isEnd ? '8px' : undefined,
|
||||
right: side === 'right' ? '-4px' : undefined,
|
||||
top: '4px',
|
||||
bottom: '4px',
|
||||
width: '3px',
|
||||
borderRadius: '999px',
|
||||
background: color,
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user