Skip to content

Commit 2452fad

Browse files
committed
UserTokens GUI
1 parent d54d5f2 commit 2452fad

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

client/src/pages/UserTokens.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
};

client/src/pages/UserTokens.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}

0 commit comments

Comments
 (0)