feat: indent

This commit is contained in:
qianxi0410
2022-08-06 23:36:20 +08:00
parent aafdc546fa
commit d025259db7
3 changed files with 11 additions and 11 deletions

View File

@ -21,7 +21,7 @@
"rules": { "rules": {
// "eqeqeq": "error", // "eqeqeq": "error",
"semi": ["error", "always"], "semi": ["error", "always"],
// "indent": ["error", 2], "indent": ["error", 2],
// follow antd's style guide // follow antd's style guide
"quotes": ["error", "double"], "quotes": ["error", "double"],
"jsx-quotes": ["error", "prefer-double"], "jsx-quotes": ["error", "prefer-double"],

View File

@ -403,14 +403,14 @@ class LoginPage extends React.Component {
</Button> </Button>
) : ) :
( (
<Button <Button
type="primary" type="primary"
htmlType="submit" htmlType="submit"
style={{width: "100%", marginBottom: "5px"}} style={{width: "100%", marginBottom: "5px"}}
disabled={!application.enablePassword} disabled={!application.enablePassword}
> >
{i18next.t("login:Sign in with WebAuthn")} {i18next.t("login:Sign in with WebAuthn")}
</Button> </Button>
) )
} }
{ {

View File

@ -88,8 +88,8 @@ export const CaptchaWidget = ({captchaType, subType, siteKey, clientSecret, onCh
if (window.initGeetest4 && siteKey && !getLock) { if (window.initGeetest4 && siteKey && !getLock) {
const captchaId = String(siteKey); const captchaId = String(siteKey);
window.initGeetest4({ window.initGeetest4({
captchaId, captchaId,
product: "float", product: "float",
}, function(captchaObj) { }, function(captchaObj) {
if (!getLock) { if (!getLock) {
captchaObj.appendTo("#captcha"); captchaObj.appendTo("#captcha");