mirror of
https://github.com/emo2007/block-accounting.git
synced 2025-04-16 10:16:28 +00:00
37 lines
778 B
TypeScript
37 lines
778 B
TypeScript
"use client";
|
|
import React from "react";
|
|
|
|
import { Card } from "antd";
|
|
import { useState, useEffect, FC } from "react";
|
|
import { useRouter } from "next/navigation";
|
|
import Link from "next/link";
|
|
import { Organization } from "../axios/api-types";
|
|
|
|
type OrgItemProps = {
|
|
element: Organization;
|
|
};
|
|
|
|
export const OrganizationCard: FC<OrgItemProps> = ({ element }) => {
|
|
const router = useRouter();
|
|
const id: any = element.id;
|
|
|
|
return (
|
|
<>
|
|
<Card
|
|
title={element.name}
|
|
type="inner"
|
|
extra={
|
|
<Link
|
|
href={{ pathname: "/organization/overview/dashboard/", query: id }}
|
|
>
|
|
More
|
|
</Link>
|
|
}
|
|
>
|
|
<p>{element.address}</p>
|
|
<p>{element.name}</p>
|
|
</Card>
|
|
</>
|
|
);
|
|
};
|