apply repo key to HowTo
This commit is contained in:
parent
66d3c27040
commit
a544036473
@ -7,8 +7,6 @@ const getFullUser = (setDataState, setLoadingState) => {
|
|||||||
})
|
})
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
console.log('getFullUser');
|
|
||||||
console.log(data);
|
|
||||||
setDataState(data);
|
setDataState(data);
|
||||||
if (setLoadingState)
|
if (setLoadingState)
|
||||||
setLoadingState(false);
|
setLoadingState(false);
|
||||||
|
@ -17,6 +17,12 @@ const HowToContent = (props) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const repoKeyRender = () => {
|
||||||
|
if (props.userFullInfo) {
|
||||||
|
return props.userFullInfo.individualKey;
|
||||||
|
} return 'REPO_KEY_HERE';
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<FlexColumn
|
<FlexColumn
|
||||||
as="article"
|
as="article"
|
||||||
@ -46,7 +52,7 @@ const HowToContent = (props) => {
|
|||||||
>
|
>
|
||||||
<CircleNumber number="2" />
|
<CircleNumber number="2" />
|
||||||
<Body as="p" margin="auto 0">
|
<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.
|
your deploy keys in your git repository settings.
|
||||||
</Body>
|
</Body>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
Loading…
Reference in New Issue
Block a user