Skip to content

Commit c3f4189

Browse files
committed
fixup! chore: use subpath imports instead of path aliases
1 parent bbcff2d commit c3f4189

File tree

28 files changed

+52
-57
lines changed

28 files changed

+52
-57
lines changed

packages/ui-components/Common/AvatarGroup/Avatar/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import classNames from 'classnames';
22
import type { HTMLAttributes, ElementType } from 'react';
33
import { forwardRef } from 'react';
44

5-
import styles from './index.module.css';
6-
75
import type { LinkLike } from '#types';
86

7+
import styles from './index.module.css';
8+
99
export type AvatarProps = {
1010
image?: string;
1111
name?: string;

packages/ui-components/Common/AvatarGroup/Overlay/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { ArrowUpRightIcon } from '@heroicons/react/24/solid';
22
import type { ComponentProps, FC } from 'react';
33

4-
import styles from './index.module.css';
5-
64
import Avatar from '#Common/AvatarGroup/Avatar';
75

6+
import styles from './index.module.css';
7+
88
export type AvatarOverlayProps = ComponentProps<typeof Avatar> & {
99
url?: string;
1010
};

packages/ui-components/Common/AvatarGroup/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import classNames from 'classnames';
44
import type { FC, ElementType } from 'react';
55
import { useState, useMemo } from 'react';
66

7-
import styles from './index.module.css';
8-
97
import type { AvatarProps } from '#Common/AvatarGroup/Avatar';
108
import Avatar from '#Common/AvatarGroup/Avatar';
119
import avatarstyles from '#Common/AvatarGroup/Avatar/index.module.css';
1210
import AvatarOverlay from '#Common/AvatarGroup/Overlay';
1311
import Tooltip from '#Common/Tooltip';
1412
import type { LinkLike } from '#types';
1513

14+
import styles from './index.module.css';
15+
1616
type AvatarGroupProps = {
1717
avatars: Array<AvatarProps>;
1818
limit?: number;

packages/ui-components/Common/BadgeGroup/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import ArrowRightIcon from '@heroicons/react/24/solid/ArrowRightIcon';
22
import type { ComponentProps, FC, PropsWithChildren } from 'react';
33

4-
import styles from './index.module.css';
5-
64
import Badge from '#Common/Badge';
75
import type { LinkLike } from '#types';
86

7+
import styles from './index.module.css';
8+
99
type BadgeGroupKind = 'default' | 'warning' | 'error';
1010

1111
type BadgeGroupProps = {

packages/ui-components/Common/BaseButton/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import classNames from 'classnames';
22
import type { FC, AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
33

4-
import styles from './index.module.css';
5-
64
import type { LinkLike } from '#types';
75

6+
import styles from './index.module.css';
7+
88
export type ButtonProps = (
99
| AnchorHTMLAttributes<HTMLAnchorElement>
1010
| ButtonHTMLAttributes<HTMLButtonElement>

packages/ui-components/Common/BaseCodeBox/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import classNames from 'classnames';
88
import type { FC, PropsWithChildren, ReactElement, ReactNode } from 'react';
99
import { Fragment, isValidElement, useRef } from 'react';
1010

11-
import styles from './index.module.css';
12-
1311
import BaseButton from '#Common/BaseButton';
1412
import type { LinkLike } from '#types';
1513

14+
import styles from './index.module.css';
15+
1616
// Transforms a code element with plain text content into a more structured
1717
// format for rendering with line numbers
1818
const transformCode = <T extends ReactElement<PropsWithChildren>>(

packages/ui-components/Common/BaseCrossLink/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import classNames from 'classnames';
22
import type { FC } from 'react';
33

44
import PrevNextArrow from '#Common/BasePagination/PrevNextArrow';
5+
import type { LinkLike, FormattedMessage } from '#types';
56

67
import styles from './index.module.css';
78

8-
import type { LinkLike, FormattedMessage } from '#types';
9-
109
export type CrossLinkProps = {
1110
type: 'previous' | 'next';
1211
text: FormattedMessage;

packages/ui-components/Common/BaseLinkTabs/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import type { FC, PropsWithChildren } from 'react';
22

3-
import styles from './index.module.css';
4-
53
import Select from '#Common/Select';
64
import type { LinkLike } from '#types';
75

6+
import styles from './index.module.css';
7+
88
type LinkTab = { key: string; label: string; link: string };
99

1010
export type LinkTabsProps = PropsWithChildren<{

packages/ui-components/Common/BasePagination/PaginationListItem/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { FC } from 'react';
22

3-
import styles from './index.module.css';
4-
53
import type { LinkLike } from '#types';
64

5+
import styles from './index.module.css';
6+
77
export type PaginationListItemProps = {
88
url: string;
99
pageNumber: number;

packages/ui-components/Common/BasePagination/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import { ArrowRightIcon, ArrowLeftIcon } from '@heroicons/react/20/solid';
22
import type { FC } from 'react';
33

4+
import Button from '#Common/BaseButton';
45
import { useGetPageElements } from '#Common/BasePagination/useGetPageElements';
6+
import type { LinkLike } from '#types';
57

68
import styles from './index.module.css';
79

8-
import Button from '#Common/BaseButton';
9-
import type { LinkLike } from '#types';
10-
1110
type Page = { url: string };
1211

1312
export type PaginationProps = {

0 commit comments

Comments
 (0)