Skip to content

Commit

Permalink
Renamed a few things in response to PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Apr 7, 2021
1 parent 1104d07 commit 36fb240
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import * as React from 'react';
import {Fragment, useContext} from 'react';
import {ProfilerContext} from './ProfilerContext';
import Schedulers from './Schedulers';
import Updaters from './Updaters';
import {formatDuration, formatTime} from './utils';
import {StoreContext} from '../context';
import {getCommitTree} from './CommitTreeBuilder';
Expand Down Expand Up @@ -117,7 +117,7 @@ export default function SidebarCommitInfo(_: Props) {
{updaters !== null && commitTree !== null && (
<li className={styles.ListItem}>
<label className={styles.Label}>What caused this update</label>?
<Schedulers commitTree={commitTree} updaters={updaters} />
<Updaters commitTree={commitTree} updaters={updaters} />
</li>
)}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ import type {SerializedElement} from '../Components/types';
import * as React from 'react';
import {useContext} from 'react';
import {ProfilerContext} from './ProfilerContext';
import styles from './Schedulers.css';
import styles from './Updaters.css';

export type Props = {|
commitTree: CommitTree,
updaters: Array<SerializedElement>,
|};

export default function Schedulers({commitTree, updaters}: Props) {
export default function Updaters({commitTree, updaters}: Props) {
const {selectFiber} = useContext(ProfilerContext);

const children =
Expand Down

0 comments on commit 36fb240

Please sign in to comment.