Skip to content

Commit 4d6bb8b

Browse files
committed
chore: fix up missing imports
1 parent 3f5e822 commit 4d6bb8b

File tree

3 files changed

+5
-33
lines changed

3 files changed

+5
-33
lines changed

packages/docs/src/components/header/header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { component$, useContext, useStyles$ } from '@qwik.dev/core';
1+
import { component$, useContext, useStyles$, useSignal, type PropsOf } from '@qwik.dev/core';
22
import { useLocation } from '@qwik.dev/router';
33
import { GlobalStore } from '../../context';
44
import { DocSearch } from '../docsearch/doc-search';

packages/docs/src/components/on-this-page/on-this-page-more.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ import { GithubLogo } from '../svgs/github-logo';
66
import { TwitterLogo } from '../svgs/twitter-logo';
77

88
type OnThisPageMoreProps = {
9-
theme: 'light' | 'dark' | 'auto';
109
editUrl: string;
1110
};
1211

13-
export const OnThisPageMore = component$<OnThisPageMoreProps>(({ theme, editUrl }) => {
12+
export const OnThisPageMore = component$<OnThisPageMoreProps>(({ editUrl }) => {
1413
const OnThisPageMore = [
1514
{
1615
href: editUrl,
@@ -45,15 +44,11 @@ export const OnThisPageMore = component$<OnThisPageMoreProps>(({ theme, editUrl
4544
{OnThisPageMore.map((el, index) => {
4645
return (
4746
<li
48-
class={`${
49-
theme === 'light'
50-
? 'hover:bg-[var(--qwik-light-blue)]'
51-
: 'hover:bg-[var(--on-this-page-hover-bg-color)]'
52-
} rounded-lg`}
47+
class="hover:bg-(--on-this-page-hover-bg-color) rounded-lg"
5348
key={`more-items-on-this-page-${index}`}
5449
>
5550
<a class="more-item" href={el.href} rel="noopener" target="_blank">
56-
{el.icon && <el.icon width={20} height={20} />}
51+
<el.icon width={20} height={20} />
5752
<span>{el.text}</span>
5853
</a>
5954
</li>

packages/docs/src/components/on-this-page/on-this-page.tsx

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import { $, component$, useOnDocument, useSignal, useStyles$ } from '@qwik.dev/core';
22
import { useContent, useLocation } from '@qwik.dev/router';
3-
import { AlertIcon } from '../svgs/alert-icon';
4-
import { ChatIcon } from '../svgs/chat-icon';
5-
import { EditIcon } from '../svgs/edit-icon';
6-
import { GithubLogo } from '../svgs/github-logo';
7-
import { TwitterLogo } from '../svgs/twitter-logo';
8-
import { GlobalStore } from '../../context';
93
import styles from './on-this-page.css?inline';
104
import { OnThisPageMore } from './on-this-page-more';
115

@@ -177,26 +171,9 @@ export const OnThisPage = component$(() => {
177171
</li>
178172
))}
179173
</ul>
180-
<OnThisPageMore theme={theme.theme} editUrl={editUrl} />
174+
<OnThisPageMore editUrl={editUrl} />
181175
</>
182176
) : null}
183-
184-
<h6>More</h6>
185-
<ul class="px-2 font-medium text-[var(--interactive-text-color)]">
186-
{OnThisPageMore.map((el, index) => {
187-
return (
188-
<li
189-
class="hover:bg-(--on-this-page-hover-bg-color) rounded-lg"
190-
key={`more-items-on-this-page-${index}`}
191-
>
192-
<a class="more-item" href={el.href} rel="noopener" target="_blank">
193-
<el.icon width={20} height={20} />
194-
<span>{el.text}</span>
195-
</a>
196-
</li>
197-
);
198-
})}
199-
</ul>
200177
</aside>
201178
);
202179
});

0 commit comments

Comments
 (0)