Skip to content

Commit 96139df

Browse files
EGAMAGZcrowlKats
andauthored
refactor: Updated icon import to use tb-icons alias (#1007)
Import cleaned up as requested in #967 --------- Co-authored-by: Leo Kettmeir <crowlkats@toaxl.com>
1 parent 133b81e commit 96139df

File tree

27 files changed

+28
-39
lines changed

27 files changed

+28
-39
lines changed

frontend/components/GitHubRepoInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
22
import { Signal } from "@preact/signals";
33
import { useRef } from "preact/hooks";
4-
import TbBrandGithub from "@preact-icons/tb/TbBrandGithub";
4+
import TbBrandGithub from "tb-icons/TbBrandGithub";
55

66
export interface GithubRepoInputProps {
77
id: string;

frontend/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { FullUser } from "../utils/api_types.ts";
44
import { GlobalSearch } from "../islands/GlobalSearch.tsx";
55
import { UserMenu } from "../islands/UserMenu.tsx";
6-
import TbBrandGithub from "@preact-icons/tb/TbBrandGithub";
6+
import TbBrandGithub from "tb-icons/TbBrandGithub";
77
import { SearchKind } from "../util.ts";
88
import { HeaderLogo } from "../islands/HeaderLogo.tsx";
99

frontend/components/HomepageHero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { asset } from "fresh/runtime";
33
import { GlobalSearch } from "../islands/GlobalSearch.tsx";
44
import { HomepageHeroParticles } from "../islands/HomepageHeroParticles.tsx";
55
import { AnimatedLogo } from "./AnimatedLogo.tsx";
6-
import TbPlus from "@preact-icons/tb/TbPlus";
6+
import TbPlus from "tb-icons/TbPlus";
77

88
const canvasStyle = /*css*/ `.particles-js-canvas-el {
99
position: absolute;

frontend/components/List.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
22
import { PaginationData } from "../util.ts";
3-
import TbChevronRight from "@preact-icons/tb/TbChevronRight";
3+
import TbChevronRight from "tb-icons/TbChevronRight";
44
import { ComponentChildren } from "preact";
55

66
export interface ListDisplayItem {

frontend/components/NavOverflow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
2-
import TbDots from "@preact-icons/tb/TbDots";
2+
import TbDots from "tb-icons/TbDots";
33

44
const NAV_OVERFLOW_SCRIPT = /* js */ `
55
(() => {

frontend/components/Table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
22

33
import { ComponentChild, ComponentChildren } from "preact";
4-
import { TbChevronLeft, TbChevronRight } from "@preact-icons/tb";
4+
import { TbChevronLeft, TbChevronRight } from "tb-icons";
55
import { PaginationData } from "../util.ts";
66

77
interface TableProps {

frontend/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
},
1515
"imports": {
16-
"@preact-icons/tb": "jsr:@preact-icons/tb@^1.0.12",
16+
"tb-icons": "jsr:@preact-icons/tb@^1.0.12",
1717
"@std/fmt": "jsr:@std/fmt@^1.0.6",
1818
"fresh": "jsr:@fresh/core@^2.0.0-alpha.25",
1919
"@fresh/plugin-tailwind": "jsr:@fresh/plugin-tailwind@^0.0.1-alpha.7",

frontend/islands/CopyButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
22
import { useSignal } from "@preact/signals";
33
import { useCallback, useRef } from "preact/hooks";
4-
import { TbCheck, TbCopy } from "@preact-icons/tb";
4+
import { TbCheck, TbCopy } from "tb-icons";
55

66
interface CopyButtonProps {
77
title: string;

frontend/islands/GithubUserLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
22
import { useSignal } from "@preact/signals";
3-
import TbBrandGithub from "@preact-icons/tb/TbBrandGithub";
3+
import TbBrandGithub from "tb-icons/TbBrandGithub";
44
import { useEffect } from "preact/hooks";
55
import { User } from "../utils/api_types.ts";
66
import { cachedGitHubLogin } from "../utils/github.ts";

frontend/islands/UserMenu.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
22
import { useEffect, useId, useRef, useState } from "preact/hooks";
33
import { FullUser } from "../utils/api_types.ts";
4-
import {
5-
TbArrowRight,
6-
TbLogout,
7-
TbPlus,
8-
TbUser,
9-
TbUserCog,
10-
} from "@preact-icons/tb";
4+
import { TbArrowRight, TbLogout, TbPlus, TbUser, TbUserCog } from "tb-icons";
115

126
const SHARED_ITEM_CLASSES =
137
"flex items-center justify-start gap-2 px-4 py-2.5 focus-visible:ring-2 ring-inset outline-none";

0 commit comments

Comments
 (0)