Skip to content

Commit 37e7161

Browse files
authored
Merge pull request #1562 from thunderstore-io/10-03-fix_type_imports_in_nimbus
Fix type imports in Nimbus
2 parents d0c6c73 + 0d2b8af commit 37e7161

File tree

39 files changed

+88
-91
lines changed

39 files changed

+88
-91
lines changed

apps/cyberstorm-remix/app/commonComponents/CheckboxList/CheckboxList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import "./CheckboxList.css";
99
import { Actionable, NewIcon } from "@thunderstore/cyberstorm";
1010
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
1111
import { resolveTriState } from "~/commonComponents/utils";
12-
import { TRISTATE } from "~/commonComponents/types";
12+
import { type TRISTATE } from "~/commonComponents/types";
1313
import { memo } from "react";
1414

1515
type typeA<B> = (v: B) => void;

apps/cyberstorm-remix/app/commonComponents/Collapsible/Collapsible.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { memo, PropsWithChildren } from "react";
1+
import { memo, type PropsWithChildren } from "react";
22
import { faCaretDown } from "@fortawesome/free-solid-svg-icons";
33
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
44
import "./Collapsible.css";

apps/cyberstorm-remix/app/commonComponents/CollapsibleText/CollapsibleText.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
22
import "./CollapsibleText.css";
3-
import { ReactElement, useState } from "react";
3+
import { useState, type ReactElement } from "react";
44

55
export interface CollapsibleTextProps {
66
text?: string;

apps/cyberstorm-remix/app/commonComponents/Connection/Connection.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import "./Connection.css";
22
import { NewIcon, NewSwitch } from "@thunderstore/cyberstorm";
3-
import { OAuthConnection } from "@thunderstore/dapper/types";
4-
import { ReactElement } from "react";
5-
import { userLinkedAccountDisconnectProviders } from "../../../../../packages/thunderstore-api/src";
3+
import { type OAuthConnection } from "@thunderstore/dapper/types";
4+
import { type ReactElement } from "react";
5+
import { type userLinkedAccountDisconnectProviders } from "../../../../../packages/thunderstore-api/src";
66

77
interface ConnectionProps {
88
name: string;

apps/cyberstorm-remix/app/commonComponents/CopyButton/CopyButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
22
import { faClone, faCheck } from "@fortawesome/free-solid-svg-icons";
3-
import { Dispatch, SetStateAction, useState } from "react";
3+
import { type Dispatch, type SetStateAction, useState } from "react";
44
import "./CopyButton.css";
55
import { NewIcon, Tooltip } from "@thunderstore/cyberstorm/src";
66
import React from "react";

apps/cyberstorm-remix/app/commonComponents/ListingDependency/ListingDependency.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import type { packageDependencySchema } from "@thunderstore/thunderstore-api";
12
import "./ListingDependency.css";
2-
import { dependencyShema } from "@thunderstore/dapper-ts";
33
import { formatToDisplayName, Image, NewLink } from "@thunderstore/cyberstorm";
44

55
export interface ListingDependencyProps {
6-
dependency: typeof dependencyShema._type;
6+
dependency: typeof packageDependencySchema._type;
77
// TODO: Remove when package versiond detail is available
88
domain: string;
99
}

apps/cyberstorm-remix/app/commonComponents/Navigation/Navigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import {
2828
OverwolfLogo,
2929
ThunderstoreLogo,
3030
} from "@thunderstore/cyberstorm/src/svg/svg";
31-
import { CurrentUser } from "@thunderstore/dapper/types";
31+
import { type CurrentUser } from "@thunderstore/dapper/types";
3232

3333
import {
3434
faSignOut,

apps/cyberstorm-remix/app/commonComponents/Navigation/NavigationWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// import { useHydrated } from "remix-utils/use-hydrated";
33
// import { useEffect, useRef, useState } from "react";
44

5-
import { CurrentUser } from "@thunderstore/dapper/types";
5+
import { type CurrentUser } from "@thunderstore/dapper/types";
66
import {
77
MobileNavigationMenu,
88
MobileUserPopoverContent,

apps/cyberstorm-remix/app/commonComponents/PackageSearch/PackageSearch.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { faGhost, faSearch } from "@fortawesome/free-solid-svg-icons";
22
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
33
import {
4-
CurrentUser,
5-
PackageListings,
6-
Section,
4+
type CurrentUser,
5+
type PackageListings,
6+
type Section,
77
} from "@thunderstore/dapper/types";
88
import { memo, Suspense, useEffect, useRef, useState } from "react";
99
import { useDebounce } from "use-debounce";
1010

1111
import "./PackageSearch.css";
12-
import { CategorySelection, TRISTATE } from "../types";
12+
import { type CategorySelection, type TRISTATE } from "../types";
1313
import {
1414
CardPackage,
1515
EmptyState,
@@ -24,16 +24,16 @@ import {
2424
isPackageOrderOptions,
2525
PackageOrder,
2626
PackageOrderOptions,
27-
PackageOrderOptionsType,
27+
type PackageOrderOptionsType,
2828
} from "./components/PackageOrder";
2929
import { RadioGroup } from "../RadioGroup/RadioGroup";
3030
import { CategoryTagCloud } from "./components/CategoryTagCloud/CategoryTagCloud";
3131
import { CollapsibleMenu } from "../Collapsible/Collapsible";
3232
import { CheckboxList } from "../CheckboxList/CheckboxList";
3333
import { PackageLikeAction } from "@thunderstore/cyberstorm-forms";
3434
import {
35-
CommunityFilters,
36-
RequestConfig,
35+
type CommunityFilters,
36+
type RequestConfig,
3737
} from "@thunderstore/thunderstore-api";
3838
import { DapperTs } from "@thunderstore/dapper-ts";
3939
import { isPromise } from "cyberstorm/utils/typeChecks";

apps/cyberstorm-remix/app/commonComponents/PageHeader/PageHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Heading, Image } from "@thunderstore/cyberstorm";
22
import "./PageHeader.css";
3-
import { memo, PropsWithChildren, ReactElement } from "react";
4-
import { HeadingSizes } from "@thunderstore/cyberstorm-theme/src/components";
3+
import { memo, type PropsWithChildren, type ReactElement } from "react";
4+
import type { HeadingSizes } from "@thunderstore/cyberstorm-theme/src/components";
55
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
66

77
export interface PageHeaderProps extends PropsWithChildren {

0 commit comments

Comments
 (0)