Browse Source

fix: fix styles path

pull/11501/head
afc163 9 months ago
parent
commit
faedf51485
  1. 1
      .husky/commit-msg
  2. 1
      .husky/pre-commit
  3. 46
      src/pages/user/register/styles.ts

1
.husky/commit-msg

@ -0,0 +1 @@
npx --no -- commitlint --edit $1

1
.husky/pre-commit

@ -0,0 +1 @@
lint-staged

46
src/pages/user/register/styles.ts

@ -0,0 +1,46 @@
import { createStyles } from 'antd-style';
const useStyles = createStyles(({ token }) => {
return {
main: {
width: '368px',
margin: '0 auto',
h3: { marginBottom: '20px', fontSize: '16px' },
},
password: {
marginBottom: '24px',
'.ant-form-item-explain': { display: 'none' },
},
getCaptcha: {
display: 'block',
width: '100%',
},
footer: {
width: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
},
submit: {
width: '50%',
},
success: {
transition: 'color 0.3s',
color: token.colorSuccess,
},
warning: {
transition: 'color 0.3s',
color: token.colorWarning,
},
error: {
transition: 'color 0.3s',
color: token.colorError,
},
'progress-pass > .progress': {
'.ant-progress-bg': { backgroundColor: token.colorWarning },
},
};
});
export default useStyles;
Loading…
Cancel
Save