Skip to content

Commit

Permalink
Move mark capture to SidebarScreen.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kidroca committed Aug 23, 2021
1 parent 36c62c2 commit 4427cd9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/pages/home/sidebar/SidebarLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import {participantPropTypes} from './optionPropTypes';
import themeColors from '../../../styles/themes/default';
import withLocalize, {withLocalizePropTypes} from '../../../components/withLocalize';
import * as App from '../../../libs/actions/App';
import {markStart} from '../../../libs/Performance';

const propTypes = {
/** Toggles the navigation menu open and closed */
Expand Down Expand Up @@ -172,7 +171,6 @@ class SidebarLinks extends React.Component {
option => option.reportID === activeReportID
))}
onSelectRow={(option) => {
markStart(CONST.TIMING.SWITCH_REPORT, option);
Navigation.navigate(ROUTES.getReportRoute(option.reportID));
this.props.onLinkClick();
}}
Expand Down
1 change: 1 addition & 0 deletions src/pages/home/sidebar/SidebarScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class SidebarScreen extends Component {
*/
startTimer() {
Timing.start(CONST.TIMING.SWITCH_REPORT);
markStart(CONST.TIMING.SWITCH_REPORT);
}

render() {
Expand Down

0 comments on commit 4427cd9

Please sign in to comment.