Skip to content

Commit

Permalink
chore: remove FC type from component
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandar-r committed Mar 22, 2024
1 parent 996c965 commit 7adf717
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/Accordion/component.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, ReactNode, JSX, FC } from "react";
import React, { useState, ReactNode, JSX } from "react";
import Icon from "../Icon/component.jsx";

export type AccordionData = {
Expand Down Expand Up @@ -27,7 +27,7 @@ export type AccordionProps = {
accordionInPageId: string;
};

const AccordionRow: FC<AccordionRowProps> = ({
const AccordionRow = ({
name,
children,
index,
Expand All @@ -37,7 +37,7 @@ const AccordionRow: FC<AccordionRowProps> = ({
bottomBorder,
last,
arrowIcon,
}) => {
}: AccordionRowProps) => {
let iconActive: JSX.Element, iconInactive: JSX.Element;
const handleSetIndex = () => {
if (active) {
Expand Down Expand Up @@ -103,13 +103,13 @@ const AccordionRow: FC<AccordionRowProps> = ({
);
};

const Accordion: FC<AccordionProps> = ({
const Accordion = ({
data,
accordionInPageId = "id-accordion",
topBorder,
bottomBorder,
arrowIcon,
}) => {
}: AccordionProps) => {
const [activeIndex, setActiveIndex] = useState(null);

return (
Expand Down

0 comments on commit 7adf717

Please sign in to comment.