Skip to content

Commit

Permalink
PR feedback: remove attachment direction
Browse files Browse the repository at this point in the history
  • Loading branch information
jfdoming committed Nov 15, 2023
1 parent 7a06c3c commit f272999
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions frontend/src/components/common/form/TimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,10 @@ type TimePickerProps = {
defaultDay?: Date;
onChange: (date: Date) => void;
isDisabled?: boolean;
attachmentDirection?: "left" | "right";
};

const TimePicker = forwardRef(function TimePicker(
{
name,
value,
defaultDay,
onChange,
isDisabled,
attachmentDirection,
}: TimePickerProps,
{ name, value, defaultDay, onChange, isDisabled }: TimePickerProps,
ref: ForwardedRef<HTMLDivElement>,
): ReactElement {
const wrapperRef = useRef<HTMLDivElement>(null);
Expand All @@ -119,13 +111,9 @@ const TimePicker = forwardRef(function TimePicker(
borderColor: "blue.500",
}}
_invalid={{
borderLeftWidth: attachmentDirection === "left" ? 0 : undefined,
borderRightWidth: attachmentDirection === "right" ? 0 : undefined,
borderColor: "red.200",
}}
as="div"
borderLeftRadius={attachmentDirection === "left" ? 0 : undefined}
borderRightRadius={attachmentDirection === "right" ? 0 : undefined}
cursor="pointer"
isDisabled={isDisabled}
onClick={(e) => {
Expand Down

0 comments on commit f272999

Please sign in to comment.