refactor: remove sub-eslintrc, fix more lint errors (#7530)

This commit is contained in:
Joshua Chen 2022-05-30 14:49:51 +08:00 committed by GitHub
parent f443e992b9
commit 9023b7740c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 129 additions and 92 deletions

View file

@ -21,7 +21,7 @@ const createContainer = () => {
};
export default async function renderReloadPopup(props: Props): Promise<void> {
const container = getContainer() || createContainer();
const container = getContainer() ?? createContainer();
const ReloadPopup = (await import('@theme/PwaReloadPopup')).default;
ReactDOM.render(<ReloadPopup {...props} />, container);
}