repo key in CodeShell
This commit is contained in:
parent
a544036473
commit
5c75e53951
@ -19,8 +19,15 @@ const HowToContent = (props) => {
|
||||
|
||||
const repoKeyRender = () => {
|
||||
if (props.userFullInfo) {
|
||||
return props.userFullInfo.individualKey;
|
||||
} return 'REPO_KEY_HERE';
|
||||
return (
|
||||
<CodeShell
|
||||
codeBlockIndex={0}
|
||||
commands={[
|
||||
props.userFullInfo.individualKey
|
||||
]}
|
||||
/>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
@ -52,10 +59,11 @@ const HowToContent = (props) => {
|
||||
>
|
||||
<CircleNumber number="2" />
|
||||
<Body as="p" margin="auto 0">
|
||||
Add the following ssh key <Medium as="span">{repoKeyRender()}</Medium> to
|
||||
Add the following ssh key <Medium as="span">{props.userFullInfo ? '' : 'REPO_KEY_HERE'}</Medium> to
|
||||
your deploy keys in your git repository settings.
|
||||
</Body>
|
||||
</Grid>
|
||||
{repoKeyRender()}
|
||||
<Grid
|
||||
width="100%"
|
||||
gridTemplateColumns="auto 1fr"
|
||||
|
@ -76,6 +76,8 @@ const Code = styled(Container)`
|
||||
line-height: 18px;
|
||||
font-weight: 300;
|
||||
color: ${({theme}) => theme.colors.white};
|
||||
max-width: 600px;
|
||||
overflow-wrap: break-word;
|
||||
|
||||
&:before {
|
||||
display: ${({before}) => before ? 'inline-block' : 'none'};
|
||||
|
Loading…
Reference in New Issue
Block a user