Skip to content

Commit 0eee794

Browse files
committed
Lint
Delete theme.ts
1 parent 8064e36 commit 0eee794

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/app/components/DynamicContentStyles.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ describe('DynamicContentStyles', () => {
162162
it('removes injected style element when styles change', async() => {
163163
store.dispatch(setBookStylesUrl('../resources/styles/test-styles.css'));
164164

165-
const component = renderer.create(<TestContainer store={store}>
165+
renderer.create(<TestContainer store={store}>
166166
<Component book={book} />
167167
</TestContainer>);
168168

src/app/components/DynamicContentStyles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const DynamicContentStyles = React.forwardRef<HTMLElement, DynamicContentStylesP
8989

9090
// Cleanup function to remove the style element when component unmounts or styles change
9191
return () => {
92-
document.head.removeChild(styleElement);
92+
document?.head.removeChild(styleElement); // no document returns early
9393
};
9494
}, [styles]);
9595

src/app/notifications/theme.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)