Skip to content

Commit

Permalink
unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
shakyShane committed Dec 17, 2024
1 parent 573550b commit 6c6784c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion special-pages/pages/new-tab/app/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function App() {

return (
<Fragment>
<BackgroundConsumer browser={browser} bg={main} />
<BackgroundConsumer browser={browser} />
<div class={styles.layout} ref={wrapperRef} data-animating={animating} data-drawer-visibility={visibility}>
<main class={cn(styles.main, styles.mainScroller)} data-main-scroller data-theme={main}>
<div class={styles.content}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ export function themeFromBrowser(browserTheme, system) {

/**
* @param {object} props
* @param {import("@preact/signals").Signal<'light' | 'dark'>} props.bg
* @param {import("@preact/signals").Signal<'light' | 'dark'>} props.browser
*/
export function BackgroundConsumer({ bg, browser }) {
export function BackgroundConsumer({ browser }) {
const { data } = useContext(CustomizerContext);
const background = data.value.background;

Expand Down

0 comments on commit 6c6784c

Please sign in to comment.