Просмотр исходного кода

Fix RegisterResult button style

afc163 8 лет назад
Родитель
Сommit
f8d345fe82
2 измененных файлов с 5 добавлено и 2 удалено
  1. 2 2
      src/routes/User/RegisterResult.js
  2. 3 0
      src/routes/User/RegisterResult.less

+ 2 - 2
src/routes/User/RegisterResult.js

@@ -8,8 +8,8 @@ const title = <div className={styles.title}>你的账户:AntDesign@example.com
 
 const actions = (
   <div className={styles.actions}>
-    <Button size="large" type="primary"><a href="">查看邮箱</a></Button>
-    <Button size="large"><Link to="/">返回首页</Link></Button>
+    <a href=""><Button size="large" type="primary">查看邮箱</Button></a>
+    <Link to="/"><Button size="large">返回首页</Button></Link>
   </div>
 );
 

+ 3 - 0
src/routes/User/RegisterResult.less

@@ -11,5 +11,8 @@
   }
   .actions {
     margin-top: 40px;
+    a + a {
+      margin-left: 8px;
+    }
   }
 }