generated from Luis/nextjs-python-web-template
fixed build error in ui
This commit is contained in:
@@ -14,7 +14,7 @@ from ports import PortFunction
|
||||
from clan_cli.webui.app import app
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
@pytest.fixture()
|
||||
def test_client() -> TestClient:
|
||||
return TestClient(app)
|
||||
|
||||
@@ -31,7 +31,7 @@ def get_health(*, url: str, max_retries: int = 20, delay: float = 0.2) -> str |
|
||||
|
||||
|
||||
# Pytest fixture to run the server in a separate process
|
||||
@pytest.fixture(scope="session")
|
||||
@pytest.fixture()
|
||||
def server_url(unused_tcp_port: PortFunction) -> Generator[str, None, None]:
|
||||
port = unused_tcp_port()
|
||||
host = "127.0.0.1"
|
||||
@@ -52,7 +52,7 @@ def server_url(unused_tcp_port: PortFunction) -> Generator[str, None, None]:
|
||||
proc.terminate()
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
@pytest.fixture()
|
||||
def api_client(server_url: str) -> Generator[ApiClient, None, None]:
|
||||
configuration = Configuration(host=server_url)
|
||||
|
||||
|
||||
@@ -25,8 +25,6 @@ import { Entity, Service } from "@/api/model";
|
||||
import useGetEntityByNameOrDid from "@/components/hooks/useGetEntityByNameOrDid";
|
||||
import { useGetAllServices } from "@/api/services/services";
|
||||
import axios from "axios";
|
||||
import { NoDataOverlay } from "@/components/noDataOverlay";
|
||||
import { DashboardCard } from "@/components/card";
|
||||
import CloseIcon from "@mui/icons-material/Close";
|
||||
|
||||
interface SnackMessage {
|
||||
@@ -34,16 +32,6 @@ interface SnackMessage {
|
||||
severity: "success" | "error";
|
||||
}
|
||||
|
||||
export const RecentActivity = (entity: Entity) => {
|
||||
return (
|
||||
<DashboardCard title="Recent Activity">
|
||||
<div className="flex w-full justify-center align-middle">
|
||||
<NoDataOverlay label="No Activity yet" />
|
||||
</div>
|
||||
</DashboardCard>
|
||||
);
|
||||
};
|
||||
|
||||
type AttachButtonProps = {
|
||||
entity?: Entity;
|
||||
setSnackbarMessage: (message: SnackMessage) => void;
|
||||
|
||||
Reference in New Issue
Block a user