chore: lint

This commit is contained in:
amhsirak
2025-01-09 19:23:24 +05:30
parent ca65359703
commit c814e37aa7

View File

@@ -69,7 +69,7 @@ const TimePicker = ({ coordinates, selector, onClose }: TimePickerProps) => {
const getOptionStyle = (value: number, isHour: boolean): React.CSSProperties => { const getOptionStyle = (value: number, isHour: boolean): React.CSSProperties => {
const isHovered = isHour ? hoveredHour === value : hoveredMinute === value; const isHovered = isHour ? hoveredHour === value : hoveredMinute === value;
const isSelected = isHour ? selectedHour === value : selectedMinute === value; const isSelected = isHour ? selectedHour === value : selectedMinute === value;
return { return {
fontSize: '13.333px', fontSize: '13.333px',
lineHeight: '18px', lineHeight: '18px',
@@ -85,11 +85,11 @@ const TimePicker = ({ coordinates, selector, onClose }: TimePickerProps) => {
const minutes = Array.from({ length: 60 }, (_, i) => i); const minutes = Array.from({ length: 60 }, (_, i) => i);
return ( return (
<div <div
className="fixed inset-0" className="fixed inset-0"
onClick={onClose} onClick={onClose}
> >
<div <div
style={containerStyle} style={containerStyle}
onClick={e => e.stopPropagation()} onClick={e => e.stopPropagation()}
> >
@@ -109,7 +109,7 @@ const TimePicker = ({ coordinates, selector, onClose }: TimePickerProps) => {
</div> </div>
{/* Minutes column */} {/* Minutes column */}
<div style={{...columnStyle, borderRight: 'none'}}> <div style={{ ...columnStyle, borderRight: 'none' }}>
{minutes.map((minute) => ( {minutes.map((minute) => (
<div <div
key={minute} key={minute}