Skip to content

Commit c8b793f

Browse files
committed
feat: open accordion on default
1 parent 3171cb2 commit c8b793f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web/src/pages/Courts/CourtDetails/Stats.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ import { responsiveSize } from "styles/responsiveSize";
2828
import StatDisplay, { IStatDisplay } from "components/StatDisplay";
2929
import { StyledSkeleton } from "components/StyledSkeleton";
3030
import { commify } from "utils/commify";
31-
import { CustomAccordion, DropdownSelect } from "@kleros/ui-components-library";
31+
import { Accordion, DropdownSelect } from "@kleros/ui-components-library";
3232
import { useHomePageExtraStats } from "queries/useHomePageExtraStats";
3333

34-
const StyledAccordion = styled(CustomAccordion)`
34+
const StyledAccordion = styled(Accordion)`
3535
width: 100%;
3636
margin-bottom: 12px;
3737
> * > button {
@@ -260,6 +260,7 @@ const Stats = () => {
260260

261261
return (
262262
<StyledAccordion
263+
defaultExpanded={0}
263264
items={[
264265
{
265266
title: "Statistics",

0 commit comments

Comments
 (0)