Skip to content

Commit

Permalink
Remove defaultProps from AccordianLogs.tsx
Browse files Browse the repository at this point in the history
Signed-off-by: cs-308-2023 <adityaruhela2003@gmail.com>
  • Loading branch information
ADI-ROXX committed Jan 24, 2025
1 parent 2d880b4 commit 409b548
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,16 @@ type AccordianLogsProps = {
timestamp: number;
};

export default function AccordianLogs(props: AccordianLogsProps) {
const { interactive, isOpen, linksGetter, logs, openedItems, onItemToggle, onToggle, timestamp } = props;
export default function AccordianLogs({
interactive = true,
isOpen,
linksGetter,
logs,
openedItems,
onItemToggle,
onToggle,
timestamp,
}: AccordianLogsProps) {
let arrow: React.ReactNode | null = null;
let HeaderComponent: 'span' | 'a' = 'span';
let headerProps: object | null = null;
Expand Down Expand Up @@ -85,10 +93,3 @@ export default function AccordianLogs(props: AccordianLogsProps) {
);
}

AccordianLogs.defaultProps = {
interactive: true,
linksGetter: undefined,
onItemToggle: undefined,
onToggle: undefined,
openedItems: undefined,
};

0 comments on commit 409b548

Please sign in to comment.