File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed
Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ import React , { useEffect } from "react" ;
2+ import I18n from "../locale/I18n" ;
3+ import "./UserTokens.scss" ;
4+ import { useAppStore } from "../stores/AppStore" ;
5+ import { UnitHeader } from "../components/UnitHeader" ;
6+ import { ReactComponent as Logo } from "@surfnet/sds/icons/illustrative-icons/shield-check.svg" ;
7+ import { Tokens } from "../tabs/Tokens" ;
8+
9+ export const UserTokens = ( ) => {
10+
11+ useEffect ( ( ) => {
12+ useAppStore . setState ( {
13+ breadcrumbPath : [
14+ { path : "/home" , value : I18n . t ( "tabs.home" ) } ,
15+ { path : "/home/tokens" , value : I18n . t ( "tabs.tokens" ) }
16+ ]
17+ } ) ;
18+
19+ } , [ ] ) ; // eslint-disable-line react-hooks/exhaustive-deps
20+
21+ return (
22+ < div className = "mod-tokens" >
23+ < UnitHeader obj = { ( { name : I18n . t ( "tokens.userTokens" ) , svg : Logo , style : "small" } ) } >
24+ </ UnitHeader >
25+ < div className = "token-container" >
26+ < Tokens />
27+ </ div >
28+ </ div > ) ;
29+ } ;
Original file line number Diff line number Diff line change 1+ @import " ../styles/vars.scss" ;
2+
3+ .mod-tokens {
4+ width : 100% ;
5+
6+
7+ .token-container {
8+ max-width : $max-width ;
9+ margin : 0 auto ;
10+
11+ @media (max-width : $medium ) {
12+ padding : 0 15px ;
13+ }
14+ }
15+ }
You can’t perform that action at this time.
0 commit comments