Skip to content

Commit

Permalink
[BOOKINGSG-4633][SR] update empty view
Browse files Browse the repository at this point in the history
  • Loading branch information
SasithaRajapakasha committed Sep 12, 2023
1 parent 79aebb6 commit 21d6264
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/data-table/data-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,13 +298,13 @@ export const DataTable = ({
emptyView.title
)
) : (
<Text.H3>{"No data found"}</Text.H3>
<Text.H3>{"No <items> found"}</Text.H3>
)
}
description={
emptyView?.description
? emptyView.description
: "No matching rows"
: "This is a placeholder text"
}
actionButton={emptyView?.actionButton}
img={emptyView?.img}
Expand Down
3 changes: 0 additions & 3 deletions stories/data-table/data-table.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -543,11 +543,8 @@ Table Empty Data View.
headerWidth: "5rem",
}}
emptyView={{
title: "No Results",
description: "This is Placeholder text",
actionButton: {
children: "Trigger",
styleType: "secondary",
style: {
width: "5rem",
},
Expand Down

0 comments on commit 21d6264

Please sign in to comment.