Skip to content

Commit 2fa05f6

Browse files
committed
chore: add-custom-party-example-in-custom-timeline
1 parent 18f8b13 commit 2fa05f6

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

src/examples/timeline.tsx

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,24 @@ const StyledTimeline = styled(Timeline)`
1414
margin: 0px 100px;
1515
`;
1616

17+
const PartyContainer = styled.div`
18+
display: flex;
19+
align-items: center;
20+
gap: 8px;
21+
`;
22+
23+
const StyledLabel = styled.label`
24+
color: ${({ theme }) => theme.klerosUIComponentsPrimaryText};
25+
line-height: 19px;
26+
`;
27+
28+
const StyledLink = styled.a`
29+
font-size: 14px;
30+
color: ${({ theme }) => theme.klerosUIComponentsPrimaryBlue};
31+
text-decoration: none;
32+
line-height: 19px;
33+
`;
34+
1735
const TimelineProgress = () => (
1836
<>
1937
<StyledSteps
@@ -54,7 +72,18 @@ const TimelineProgress = () => (
5472
items={[
5573
{
5674
title: "Pay 250 DAI",
57-
party: "alice.eth",
75+
party: (
76+
<PartyContainer>
77+
<StyledLabel>alice.eth -</StyledLabel>
78+
<StyledLink
79+
href="https://docs.kleros.io/"
80+
target="_blank"
81+
rel="noreferrer"
82+
>
83+
Justification
84+
</StyledLink>
85+
</PartyContainer>
86+
),
5887
subtitle: "06 Jul 2023 12:00 UTC",
5988
variant: "#4D00B4",
6089
Icon: Circle,

0 commit comments

Comments
 (0)