Skip to content

Commit 82a78e7

Browse files
committed
Follow the React API changes of tabler-icons 3.0
1 parent 5c6c953 commit 82a78e7

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/app/downloads/config.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import {
2+
Icon,
23
IconBrandApple,
34
IconBrandChrome,
45
IconBrandEdge,
56
IconBrandFirefox,
67
IconBrandJavascript,
78
IconBrandSafari,
8-
IconBrandWindows,
9-
TablerIconsProps,
9+
IconBrandWindows
1010
} from "@tabler/icons-react";
1111
import React from "react";
1212
import { IconBrandLinux } from "@/components/icons";
@@ -87,7 +87,7 @@ export interface DownloadLink {
8787
/**
8888
* Icon to represent this link
8989
*/
90-
icon: (props: TablerIconsProps) => React.JSX.Element;
90+
icon: React.ExoticComponent<React.RefAttributes<Icon>>;
9191

9292
/**
9393
* Whether or not to recommend this link to the given device

src/app/installers.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"use client";
22

33
import {
4+
Icon,
45
IconBrandJavascript,
5-
IconList,
6-
TablerIconsProps,
6+
IconList
77
} from "@tabler/icons-react";
88
import React from "react";
99
import { useDeviceSelectors } from "react-device-detect";
@@ -13,7 +13,7 @@ import Link from "next/link";
1313
import { allLinks, CurrentDevice, GithubRelease } from "@/app/downloads/config";
1414

1515
interface RecommendedDownload {
16-
icon: (props: TablerIconsProps) => React.JSX.Element;
16+
icon: React.ExoticComponent<React.RefAttributes<Icon>>;
1717
name: string;
1818
url: string;
1919
className?: string;

src/components/icons.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { createReactComponent } from "@tabler/icons-react";
33
// Source: https://www.svgrepo.com/svg/340565/linux
44
// Apache license
55
export const IconBrandLinux = createReactComponent(
6+
"outline",
67
"icon-brand-linux",
78
"IconBrandLinux",
89
[

0 commit comments

Comments
 (0)