This is an automated email from the ASF dual-hosted git repository. yjc pushed a commit to branch home-screen-mvp in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
commit b029d5efbe19d30f3786fd90d428c3cb2e325cc4 Author: Phillip Kelley-Dotson <[email protected]> AuthorDate: Fri Oct 2 16:57:08 2020 -0700 add icon --- superset-frontend/src/components/ListViewCard/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/superset-frontend/src/components/ListViewCard/index.tsx b/superset-frontend/src/components/ListViewCard/index.tsx index 5e06e79..eb2bbab 100644 --- a/superset-frontend/src/components/ListViewCard/index.tsx +++ b/superset-frontend/src/components/ListViewCard/index.tsx @@ -154,6 +154,7 @@ interface CardProps { actions: React.ReactNode; showImg?: boolean; rows?: number | string; + avatar?: string; } function ListViewCard({ @@ -166,7 +167,7 @@ function ListViewCard({ coverLeft, coverRight, actions, - avatar, + avatar = 'nav-dashboard', loading, imgPosition = 'top', showImg = true, @@ -254,7 +255,7 @@ function ListViewCard({ </> } description={description} - avatar={<Icon name={avatar} />} + avatar={<IconComponent />} /> )} </StyledCard>
