tron-v1
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.4 KiB

7 months ago
  1. import React from "react";
  2. import { Card, Progress, Row, Space, Tooltip, Typography } from "antd";
  3. import { AppstoreOutlined, QuestionCircleOutlined } from "@ant-design/icons";
  4. import Link from "antd/lib/typography/Link";
  5. const { Title } = Typography;
  6. const VoteCard: React.FC = () => {
  7. return (
  8. <Card
  9. title={
  10. <div
  11. style={{
  12. display: "flex",
  13. justifyContent: "space-between",
  14. alignItems: "center",
  15. }}
  16. >
  17. <div>
  18. <AppstoreOutlined />
  19. </div>
  20. <Link></Link>
  21. </div>
  22. }
  23. hoverable
  24. >
  25. <Row justify="space-between">
  26. <div>
  27. <Tooltip
  28. title={
  29. "投票权 (TP) 用来给 TRON SR 投票,用户可以通过质押 TRX 来获得投票权。"
  30. }
  31. >
  32. <QuestionCircleOutlined />
  33. </Tooltip>
  34. </div>
  35. <div>0.0</div>
  36. </Row>
  37. <Progress percent={30} size="small" />
  38. <Row justify="space-between">
  39. <div>APY</div>
  40. <div>0.0%</div>
  41. </Row>
  42. <Row justify="space-between">
  43. <div></div>
  44. <div>0TRX</div>
  45. </Row>
  46. <Space>
  47. <button></button>
  48. <button></button>
  49. </Space>
  50. </Card>
  51. );
  52. };
  53. export default VoteCard;