Skip to content

Commit

Permalink
Merge pull request #8 from ridhlab/feat/result
Browse files Browse the repository at this point in the history
feat(result-detail): add card title
  • Loading branch information
ridhlab authored Jan 2, 2024
2 parents 8d75135 + e9c66da commit ce38974
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 ce38974

Please sign in to comment.