Skip to content

Commit

Permalink
feat: indent
Browse files Browse the repository at this point in the history
  • Loading branch information
qianxi0410 committed Aug 6, 2022
1 parent aafdc54 commit d025259
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion web/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"rules": {
// "eqeqeq": "error",
"semi": ["error", "always"],
// "indent": ["error", 2],
"indent": ["error", 2],
// follow antd's style guide
"quotes": ["error", "double"],
"jsx-quotes": ["error", "prefer-double"],
Expand Down
16 changes: 8 additions & 8 deletions web/src/auth/LoginPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,14 +403,14 @@ class LoginPage extends React.Component {
</Button>
) :
(
<Button
type="primary"
htmlType="submit"
style={{width: "100%", marginBottom: "5px"}}
disabled={!application.enablePassword}
>
{i18next.t("login:Sign in with WebAuthn")}
</Button>
<Button
type="primary"
htmlType="submit"
style={{width: "100%", marginBottom: "5px"}}
disabled={!application.enablePassword}
>
{i18next.t("login:Sign in with WebAuthn")}
</Button>
)
}
{
Expand Down
4 changes: 2 additions & 2 deletions web/src/common/CaptchaWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ export const CaptchaWidget = ({captchaType, subType, siteKey, clientSecret, onCh
if (window.initGeetest4 && siteKey && !getLock) {
const captchaId = String(siteKey);
window.initGeetest4({
captchaId,
product: "float",
captchaId,
product: "float",
}, function(captchaObj) {
if (!getLock) {
captchaObj.appendTo("#captcha");
Expand Down

0 comments on commit d025259

Please sign in to comment.