apply repo key to HowTo

This commit is contained in:
Mateusz Tylka 2023-02-23 21:04:37 +01:00
parent 66d3c27040
commit a544036473
2 changed files with 7 additions and 3 deletions

View File

@ -7,8 +7,6 @@ const getFullUser = (setDataState, setLoadingState) => {
})
.then(response => response.json())
.then(data => {
console.log('getFullUser');
console.log(data);
setDataState(data);
if (setLoadingState)
setLoadingState(false);

View File

@ -17,6 +17,12 @@ const HowToContent = (props) => {
}
};
const repoKeyRender = () => {
if (props.userFullInfo) {
return props.userFullInfo.individualKey;
} return 'REPO_KEY_HERE';
};
return (
<FlexColumn
as="article"
@ -46,7 +52,7 @@ const HowToContent = (props) => {
>
<CircleNumber number="2" />
<Body as="p" margin="auto 0">
Add the following ssh key <Medium as="span">REPO_KEY_HERE</Medium> to
Add the following ssh key <Medium as="span">{repoKeyRender()}</Medium> to
your deploy keys in your git repository settings.
</Body>
</Grid>