From 180a08a5ecad6cf3685e8b0c780733881bd7cbf8 Mon Sep 17 00:00:00 2001 From: Bilawal Hameed Date: Mon, 6 Jul 2020 14:24:23 +0200 Subject: [PATCH] chore: use onLoading and onLoaded --- plugins/techdocs/src/reader/components/Reader.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/techdocs/src/reader/components/Reader.tsx b/plugins/techdocs/src/reader/components/Reader.tsx index e474d3bf11..e7955161f7 100644 --- a/plugins/techdocs/src/reader/components/Reader.tsx +++ b/plugins/techdocs/src/reader/components/Reader.tsx @@ -136,10 +136,10 @@ export const Reader = () => { }), onCssReady({ docStorageURL, - onLoad: dom => { + onLoading: (dom: Element) => { dom.style.setProperty('opacity', '0'); }, - onReady: dom => { + onLoaded: (dom: Element) => { dom.style.removeProperty('opacity'); }, }),