@samitouri / QOS-React-2 / commits / 206d61f722

fix typos on react-devtools comments (#16681)

Alex Rohleder committed Sep 6, 2019 at 16:47 UTC 206d61f72214e8ae5b935f0bf8628491cb7f0797
5 files changed +5 -5
packages/react-devtools-shared/src/backend/console.js
+1 -1
@@ -47,7 +47,7 @@ export function dangerous_setTargetConsoleForTesting(
47
48 // v16 renderers should use this method to inject internals necessary to generate a component stack.
49 // These internals will be used if the console is patched.
50 -// Injecting them separately allows the console to easily be patched or unpacted later (at runtime).
50 +// Injecting them separately allows the console to easily be patched or un-patched later (at runtime).
51 export function registerRenderer(renderer: ReactRenderer): void {
52 const {getCurrentFiber, findFiberByHostInstance, version} = renderer;
53
packages/react-devtools-shared/src/backend/describeComponentFrame.js
+1 -1
@@ -10,7 +10,7 @@
10 // This file was forked from the React GitHub repo:
11 // https://raw.githubusercontent.com/facebook/react/master/packages/shared/describeComponentFrame.js
12 //
13 -// It has been modified sligthly to add a zero width space as commented below.
13 +// It has been modified slightly to add a zero width space as commented below.
14
15 const BEFORE_SLASH_RE = /^(.*)[\\/]/;
16
packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/AutoSizeInput.js
+1 -1
@@ -38,7 +38,7 @@ export default function AutoSizeInput({
38 }
39 };
40
41 - // Copy text stlyes from <input> to hidden sizing <div>
41 + // Copy text styles from <input> to hidden sizing <div>
42 useLayoutEffect(() => {
43 if (
44 typeof window.getComputedStyle !== 'function' ||
packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/context.js
+1 -1
@@ -121,7 +121,7 @@ function NativeStyleContextController({children}: Props) {
121 } else {
122 resource.write(element, styleAndLayout);
123
124 - // Schedule update with React if the curently-selected element has been invalidated.
124 + // Schedule update with React if the currently-selected element has been invalidated.
125 if (id === selectedElementID) {
126 setCurrentStyleAndLayout(styleAndLayout);
127 }
packages/react-devtools-shared/src/devtools/views/DevTools.js
+1 -1
@@ -8,7 +8,7 @@
8 */
9
10 // Reach styles need to come before any component styles.
11 -// This makes overridding the styles simpler.
11 +// This makes overriding the styles simpler.
12 import '@reach/menu-button/styles.css';
13 import '@reach/tooltip/styles.css';
14