New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Adding report bug #16065
fix: Adding report bug #16065
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,14 +60,15 @@ export default function HeaderReportActionsDropDown({ | |
}; | ||
|
||
const menu = () => ( | ||
<Menu selectable={false}> | ||
<Menu selectable={false} css={{ width: '200px' }}> | ||
<Menu.Item> | ||
{t('Email reports active')} | ||
<Switch | ||
data-test="toggle-active" | ||
checked={report?.active} | ||
onClick={(checked: boolean) => toggleActiveKey(report, checked)} | ||
size="small" | ||
css={{ marginLeft: '8px' }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here? Also, should we use grid units here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 on the grid units There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good point! Added, ty. |
||
/> | ||
</Menu.Item> | ||
<Menu.Item onClick={showReportModal}>{t('Edit email report')}</Menu.Item> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be
style
instead ofcss
?https://ant.design/components/menu/#Menu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
emotion uses css, and I believe we prefer that over style which hits the dom directly.