Skip to content

Commit

Permalink
feat(result-detail): add card title
Browse files Browse the repository at this point in the history
  • Loading branch information
ridhlab committed Jan 2, 2024
1 parent e78a156 commit e9c66da
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/pages/Result/Detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const DetailResultPredict: React.FC = () => {
];

const mainContent = (
<Row gutter={20} justify="center">
<Row gutter={20} justify="start">
<Col>
<Table
pagination={false}
Expand All @@ -63,13 +63,15 @@ const DetailResultPredict: React.FC = () => {
title="Detail Predict"
breadcrumbs={Breadcrumbs.Result.Detail(id)}
>
<Card>
{query?.isLoading || query?.isFetching ? (
<LoaderCenter />
) : (
mainContent
)}
</Card>
{query?.isLoading || query?.isFetching ? (
<LoaderCenter />
) : (
<Card
title={`Result predict for ${query?.data?.data?.result?.name}`}
>
{mainContent}
</Card>
)}
</MainLayout>
);
};
Expand Down

0 comments on commit e9c66da

Please sign in to comment.