11import React from "react" ;
2- import styled from "styled-components" ;
3- import { Breadcrumb } from "@kleros/ui-components-library" ;
4- import HomeIcon from "svgs/icons/home.svg" ;
52import { IRegistriesGrid } from "components/RegistriesDisplay/RegistriesGrid" ;
6- import InformationCard from ". /InformationCard" ;
3+ import InformationCard from "components /InformationCard" ;
74import Tabs from "./Tabs" ;
85import List from "./List" ;
9- import History from "./History " ;
6+ import History from "components/HistoryDisplay " ;
107import { Navigate , Route , Routes } from "react-router-dom" ;
11-
12- const StyledBreadcrumb = styled ( Breadcrumb ) `
13- margin-bottom: 32px;
14- align-items: center;
15- ` ;
16-
17- const StyledHomeIcon = styled ( HomeIcon ) `
18- path {
19- fill: ${ ( { theme } ) => theme . secondaryText } ;
20- }
21- margin-bottom: 3.5px;
22- ` ;
23-
24- const breadcrumbItems = [
25- { text : < StyledHomeIcon /> , value : "0" } ,
26- { text : "All Lists" , value : "1" } ,
27- { text : "Address Tags" , value : "2" } ,
28- ] ;
8+ import { useTheme } from "styled-components" ;
9+ import ClosedIcon from "assets/svgs/icons/check-circle-outline.svg" ;
2910
3011interface IRegistryDetails extends IRegistriesGrid {
3112 items : [ ] ;
@@ -42,14 +23,36 @@ const RegistryDetails: React.FC<IRegistryDetails> = ({
4223 totalItems = 3 ,
4324 className,
4425} ) => {
26+ const theme = useTheme ( ) ;
27+ const historyItems = [
28+ {
29+ title : "List Submitted" ,
30+ variant : theme . primaryBlue ,
31+ subtitle : "April 06, 2022" ,
32+ rightSided : true ,
33+ } ,
34+ {
35+ title : "List Challenged" ,
36+ party : "- Case #1369 by Alice.eth" ,
37+ variant : theme . secondaryPurple ,
38+ subtitle : "April 07, 2022" ,
39+ rightSided : true ,
40+ } ,
41+ {
42+ title : "List Submitted" ,
43+ subtitle : "April 06, 2022" ,
44+ rightSided : true ,
45+ Icon : ClosedIcon ,
46+ } ,
47+ ] ;
48+
4549 return (
4650 < div { ...{ className } } >
47- < StyledBreadcrumb items = { breadcrumbItems } />
4851 < InformationCard title = { title } logoURI = { logoURI } description = { description } />
4952 < Tabs />
5053 < Routes >
5154 < Route path = "list/:page/:order/:filter" element = { < List /> } />
52- < Route path = "history" element = { < History /> } />
55+ < Route path = "history" element = { < History items = { historyItems } /> } />
5356 < Route path = "*" element = { < Navigate to = "list/1/desc/all" replace /> } />
5457 </ Routes >
5558 </ div >
0 commit comments