index.jsx 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import React, { useState } from "react";
  2. import { Divider, Card, Steps, Button, Radio, Form, Input, Row, Col, Select } from "antd";
  3. import Page from "@/components/Page";
  4. import FoundationInfo from "./components/FoundationInfo";
  5. import DirectorInfo from "./components/DirectorInfo";
  6. import { useTranslation } from 'react-i18next';
  7. import "./style.less";
  8. export default (props) => {
  9. const { t } = useTranslation();
  10. const [index, setIndex] = useState(0);
  11. return (
  12. <Page>
  13. <div className="authentication-box">
  14. <div className="authentication-left">
  15. <div style={{ fontSize: '24px', fontWeight: '400' }}>{t('authentication.titleLeft')}</div>
  16. <Card bordered={false}>
  17. <Steps
  18. style={{ height: '360px' }}
  19. progressDot
  20. current={index}
  21. direction="vertical"
  22. items={[
  23. {
  24. title: t('authentication.stepsTitle1'),
  25. },
  26. {
  27. title: t('authentication.stepsTitle2')
  28. },
  29. {
  30. title: t('authentication.stepsTitle3')
  31. },
  32. {
  33. title: t('authentication.stepsTitle4')
  34. },
  35. {
  36. title: t('authentication.stepsTitle5')
  37. },
  38. ]}
  39. />
  40. </Card>
  41. </div>
  42. <div style={{ flex: 1.5 }}>
  43. {
  44. index === 0 && (
  45. <FoundationInfo index={index} setIndex={setIndex} />
  46. )
  47. },
  48. {
  49. index === 1 && (
  50. <DirectorInfo />
  51. )
  52. }
  53. </div>
  54. </div>
  55. </Page>
  56. )
  57. }