chore: SQLLab row limit warning using Alert component (#14298)

This commit is contained in:
zuzana-vej 2021-04-22 10:12:46 -07:00 committed by GitHub
parent 38a7c537ff
commit 86233d1676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -506,7 +506,9 @@ export default class ResultSet extends React.PureComponent<
const limitReached = results?.displayLimitReached;
return (
<ReturnedRows>
{!limitReached && <span>{t(`%s rows returned`, rows)}</span>}
{!limitReached && (
<Alert type="warning" message={t(`%s rows returned`, rows)} />
)}
{limitReached && (
<Alert
type="warning"