Skip to content

Commit

Permalink
[CCUBE-1241][RL] Revert unused changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Quek Ruo Ling committed Apr 17, 2024
1 parent f09c092 commit c3f10f6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/shared/dropdown-wrapper/element-with-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const ElementWithDropdown = ({
const floatingRef = useRef<HTMLDivElement>(null);
const { refs, floatingStyles, context } = useFloating({
open: isOpen,
onOpenChange: (open, event, reason) => {
onOpenChange: (open, _event, reason) => {
if (reason === "escape-key") {
onDismiss?.();
} else if (open && !isOpen) {
Expand Down
4 changes: 1 addition & 3 deletions src/shared/internal-calendar/internal-calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export const Component = (
// =============================================================================
const calendarManagerRef = useRef<CalendarManagerRef>();
const previousCalendarDate = useRef<Dayjs>(undefined);
const containerRef = useRef<HTMLDivElement>(undefined);

// =============================================================================
// HOOKS
Expand All @@ -51,7 +50,6 @@ export const Component = (
setCalendarDate(value?: string) {
calendarManagerRef.current.setCalendarDate(value);
},
rootElementRef: containerRef,
};
});

Expand Down Expand Up @@ -181,7 +179,7 @@ export const Component = (
};

return (
<Container $type={type} ref={containerRef}>
<Container $type={type}>
<CalendarManager
type={type}
ref={calendarManagerRef}
Expand Down
2 changes: 0 additions & 2 deletions src/shared/internal-calendar/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Dayjs } from "dayjs";
import { RefObject } from "react";

export interface CommonCalendarProps {
/**
Expand Down Expand Up @@ -67,7 +66,6 @@ export interface YearMonthDisplay {
export interface InternalCalendarRef {
reset: () => void;
setCalendarDate: (value?: string) => void;
rootElementRef: RefObject<HTMLElement>;
}

// =============================================================================
Expand Down

0 comments on commit c3f10f6

Please sign in to comment.