Skip to content

Commit c47884c

Browse files
committed
Improve code legibility and remove second use of useAppContext
1 parent cbf30e1 commit c47884c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

x-pack/legacy/plugins/watcher/public/np_ready/application/boot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const boot = (bootDeps: BootDeps) => {
2727

2828
render(
2929
<I18nContext>
30-
<App {...{ ...appDeps, legacy }} />
30+
<App {...appDeps} legacy={legacy} />
3131
</I18nContext>,
3232
element
3333
);

x-pack/legacy/plugins/watcher/public/np_ready/application/sections/watch_list/components/watch_list.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ export const WatchList = () => {
4848
const {
4949
chrome,
5050
legacy: { MANAGEMENT_BREADCRUMB },
51-
} = useAppContext();
52-
const {
5351
links: { watcherGettingStartedUrl },
5452
} = useAppContext();
5553
const [selection, setSelection] = useState([]);

0 commit comments

Comments
 (0)