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.

115 lines
2.6 KiB

  1. "use client";
  2. import React from "react";
  3. import {
  4. Button,
  5. Card,
  6. Col,
  7. Dropdown,
  8. Row,
  9. Space,
  10. Table,
  11. Tabs,
  12. type TabsProps,
  13. Tag,
  14. Typography,
  15. } from "antd";
  16. import { CalculatorOutlined, MoreOutlined } from "@ant-design/icons";
  17. import Link from "antd/lib/typography/Link";
  18. import MyStake from "@/app/home/resources2/components/MyStake";
  19. const { Text } = Typography;
  20. const OtherAccounts = () => {
  21. const columns_key1 = [
  22. {
  23. title: "资源类型",
  24. dataIndex: "name",
  25. key: "name",
  26. },
  27. {
  28. title: "获取资源数量",
  29. dataIndex: "quantity",
  30. key: "quantity",
  31. },
  32. {
  33. title: "质押数量",
  34. dataIndex: "name",
  35. key: "name",
  36. },
  37. {
  38. title: "最后操作时间 (UTC)",
  39. dataIndex: "quantity",
  40. key: "quantity",
  41. },
  42. {
  43. title: "操作",
  44. render: () => {
  45. return (
  46. <Dropdown menu={{ items }}>
  47. <MoreOutlined />
  48. </Dropdown>
  49. );
  50. },
  51. },
  52. ];
  53. const items: TabsProps["items"] = [
  54. {
  55. key: "1",
  56. label: "质押获得",
  57. children: <Table dataSource={[]} columns={columns_key1} />,
  58. },
  59. {
  60. key: "2",
  61. label: "他人代理给自己",
  62. children: <Table dataSource={[]} columns={columns_key1} />,
  63. },
  64. {
  65. key: "3",
  66. label: "代理给他人",
  67. children: <Table dataSource={[]} columns={columns_key1} />,
  68. },
  69. ];
  70. return (
  71. <Space direction={"vertical"} size={[16, 16]} style={{ width: "100%" }}>
  72. <div
  73. style={{
  74. display: "flex",
  75. justifyContent: "space-between",
  76. alignItems: "center",
  77. backgroundColor: "white",
  78. padding: 16,
  79. }}
  80. >
  81. <Text strong></Text>
  82. </div>
  83. <Card
  84. style={{ backgroundColor: "#fffbf6" }}
  85. title={
  86. <Space direction={"vertical"}>
  87. <Text strong></Text>
  88. <Text>
  89. </Text>
  90. </Space>
  91. }
  92. >
  93. <Table dataSource={[]} columns={columns_key1} />
  94. </Card>
  95. <Card
  96. style={{ backgroundColor: "#fffbf6" }}
  97. title={
  98. <Space direction={"vertical"}>
  99. <Text strong></Text>
  100. <Text></Text>
  101. </Space>
  102. }
  103. >
  104. <Table dataSource={[]} columns={columns_key1} />
  105. </Card>
  106. </Space>
  107. );
  108. };
  109. export default OtherAccounts;