chore: update description

This commit is contained in:
zerosoul
2022-04-19 22:50:26 +08:00
parent 7a34a86d5b
commit 408298e1da
2 changed files with 26 additions and 2 deletions
+25 -1
View File
@@ -7,6 +7,23 @@ const Styled = styled.div`
justify-content: flex-start; justify-content: flex-start;
align-items: flex-start; align-items: flex-start;
gap: 15px; gap: 15px;
.input {
width: 100%;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 8px;
label {
white-space: nowrap;
font-size: 14px;
color: #555;
}
}
.tip {
font-size: 12px;
color: #999;
line-height: 1.5;
}
`; `;
import Input from "../../common/component/styled/Input"; import Input from "../../common/component/styled/Input";
import Button from "../../common/component/styled/Button"; import Button from "../../common/component/styled/Button";
@@ -23,8 +40,15 @@ export default function APIConfig() {
console.log("secret", data); console.log("secret", data);
return ( return (
<Styled> <Styled>
<Input type="password" value={updatedSecret || data} /> <div className="input">
<label htmlFor="secret">API Secure Key:</label>
<Input type="password" id="secret" value={updatedSecret || data} />
</div>
<Button onClick={updateSecret}>Update Secret</Button> <Button onClick={updateSecret}>Update Secret</Button>
<div className="tip">
Tip: The security key agreed between the rustchat server and the
third-party app is used to encrypt the communication data.{" "}
</div>
</Styled> </Styled>
); );
} }
+1 -1
View File
@@ -66,7 +66,7 @@ const navs = [
}, },
{ {
name: "api", name: "api",
title: "API", title: "Third-party APP",
component: <APIConfig />, component: <APIConfig />,
}, },
], ],