Skip to content

Commit f6c3c48

Browse files
author
CsB-Polymesh
committed
updated code based on latest suggestions
1 parent 6beb532 commit f6c3c48

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

src/layouts/SecondaryKeys/components/NoSecondaryKeysView/index.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
StyledInfo,
88
StyledLink,
99
StyledLinkGroup,
10+
StyledNavLink,
1011
} from './styles';
1112

1213
export const NoSecondaryKeysView = () => (
@@ -16,11 +17,15 @@ export const NoSecondaryKeysView = () => (
1617
</StyledIcon>
1718
<StyledTitle>No secondary keys attached</StyledTitle>
1819
<StyledInfo>
19-
No secondary keys are currently associated with this identity. Add
20-
secondary keys and set their permissions from the Authorizations page.
20+
No secondary keys are currently associated with this identity.
21+
<br />
22+
First, add a secondary key from the Authorizations page. Then return here
23+
to set its permissions.
2124
</StyledInfo>
2225
<StyledLinkGroup>
23-
<StyledLink href={PATHS.AUTHORIZATIONS}>Go to Authorizations</StyledLink>
26+
<StyledNavLink to={PATHS.AUTHORIZATIONS}>
27+
Go to Authorizations
28+
</StyledNavLink>
2429
<StyledLink
2530
href="https://developers.polymesh.network/identity/advanced/secondary-keys/"
2631
target="_blank"

src/layouts/SecondaryKeys/components/NoSecondaryKeysView/styles.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { NavLink } from 'react-router-dom';
12
import styled from 'styled-components';
23

34
export const StyledContainer = styled.section`
@@ -70,3 +71,19 @@ export const StyledLinkGroup = styled.div`
7071
width: 100%;
7172
align-items: center;
7273
`;
74+
75+
export const StyledNavLink = styled(NavLink)`
76+
font-size: 16px;
77+
line-height: 150%;
78+
color: ${({ theme }) => theme.colors.textPink};
79+
text-decoration: underline;
80+
text-align: center;
81+
82+
&:hover {
83+
opacity: 0.8;
84+
}
85+
86+
@media screen and (max-width: 767px) {
87+
font-size: 15px;
88+
}
89+
`;

0 commit comments

Comments
 (0)