Skip to content

Commit 82b174f

Browse files
author
Brian Vaughn
committed
Renamed a few things in response to PR suggestions
1 parent e82d88a commit 82b174f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/react-devtools-shared/src/devtools/views/Profiler/SidebarCommitInfo.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import * as React from 'react';
1111
import {Fragment, useContext} from 'react';
1212
import {ProfilerContext} from './ProfilerContext';
13-
import Schedulers from './Schedulers';
13+
import Updaters from './Updaters';
1414
import {formatDuration, formatTime} from './utils';
1515
import {StoreContext} from '../context';
1616
import {getCommitTree} from './CommitTreeBuilder';
@@ -117,7 +117,7 @@ export default function SidebarCommitInfo(_: Props) {
117117
{updaters !== null && commitTree !== null && (
118118
<li className={styles.ListItem}>
119119
<label className={styles.Label}>What caused this update</label>?
120-
<Schedulers commitTree={commitTree} updaters={updaters} />
120+
<Updaters commitTree={commitTree} updaters={updaters} />
121121
</li>
122122
)}
123123

packages/react-devtools-shared/src/devtools/views/Profiler/Schedulers.js renamed to packages/react-devtools-shared/src/devtools/views/Profiler/Updaters.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ import type {SerializedElement} from '../Components/types';
1313
import * as React from 'react';
1414
import {useContext} from 'react';
1515
import {ProfilerContext} from './ProfilerContext';
16-
import styles from './Schedulers.css';
16+
import styles from './Updaters.css';
1717

1818
export type Props = {|
1919
commitTree: CommitTree,
2020
updaters: Array<SerializedElement>,
2121
|};
2222

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

2626
const children =

0 commit comments

Comments
 (0)