From 331f75823880e9396c3eb0ae8d67cce7d63780f1 Mon Sep 17 00:00:00 2001 From: Minnowo <62451415+Minnowo@users.noreply.github.com> Date: Sat, 28 Sep 2024 13:28:58 -0400 Subject: [PATCH] Fix lint error --- ui/src/common/DateTimeSelector.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/src/common/DateTimeSelector.tsx b/ui/src/common/DateTimeSelector.tsx index f0869c8..30fab98 100644 --- a/ui/src/common/DateTimeSelector.tsx +++ b/ui/src/common/DateTimeSelector.tsx @@ -18,7 +18,6 @@ export const DateTimeSelector: React.FC = React.memo( const time = localeData.longDateFormat('LT').replace('A', 'a'); const ampm = time.indexOf('a') !== -1; const format = showDate ? localeData.longDateFormat('L') + ' ' + time : time; - const width = (showDate ? 185 : 105) + (ampm ? 20 : 0); return ( = React.memo( variant="dialog" InputProps={{disableUnderline: true}} title={selectedDate.format()} - style={{width: width}} + style={{width: (showDate ? 185 : 105) + (ampm ? 20 : 0)}} PopoverProps={{ onEntered: () => { popoverOpen(true);