Skip to content

Commit 1ee63a4

Browse files
committed
use relative import
1 parent a2824df commit 1ee63a4

File tree

8 files changed

+26
-22
lines changed

8 files changed

+26
-22
lines changed

packages/gatsby-theme/src/components/Documentation/Layout/SearchForm/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import Promise from 'promise-polyfill'
22
import { useEffect, useState } from 'react'
33

4-
import * as styles from '@dvcorg/gatsby-theme/src/components/Documentation/Layout/SearchForm/styles.module.css'
54
import { loadResource } from '@dvcorg/gatsby-theme/src/utils/front/resources'
65

6+
import * as styles from './styles.module.css'
7+
78
declare global {
89
interface Window {
910
docsearch?: (opts: Record<string, unknown>) => void

packages/gatsby-theme/src/components/HamburgerMenu/index.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ import {
66
HOME_PAGE_LINK,
77
MAIN_SITE_URL
88
} from '@dvcorg/gatsby-theme/consts'
9-
import HamburgerIcon from '@dvcorg/gatsby-theme/src/components/HamburgerIcon'
10-
import * as styles from '@dvcorg/gatsby-theme/src/components/HamburgerMenu/styles.module.css'
11-
import Link from '@dvcorg/gatsby-theme/src/components/Link'
12-
import { ReactComponent as GithubIcon } from '@dvcorg/gatsby-theme/src/components/SocialIcon/github.svg'
13-
import { ReactComponent as TwitterIcon } from '@dvcorg/gatsby-theme/src/components/SocialIcon/twitter.svg'
149
import menuData from '@dvcorg/gatsby-theme/src/data/menu'
1510
import { logEvent } from '@dvcorg/gatsby-theme/src/utils/front/plausible'
1611

12+
import HamburgerIcon from '../HamburgerIcon'
13+
import Link from '../Link'
14+
import { ReactComponent as GithubIcon } from '../SocialIcon/github.svg'
15+
import { ReactComponent as TwitterIcon } from '../SocialIcon/twitter.svg'
16+
17+
import * as styles from './styles.module.css'
18+
1719
export type HamburgerHelpers = {
1820
opened: boolean
1921
setOpened: (newState: boolean) => void

packages/gatsby-theme/src/components/LayoutFooter/index.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
import cn from 'classnames'
22

33
import { MAIN_SITE_URL, BLOGS_URL } from '@dvcorg/gatsby-theme/consts'
4-
import * as styles from '@dvcorg/gatsby-theme/src/components/LayoutFooter/styles.module.css'
5-
import LayoutWidthContainer from '@dvcorg/gatsby-theme/src/components/LayoutWidthContainer'
6-
import Link from '@dvcorg/gatsby-theme/src/components/Link'
74
import SocialIcon, {
85
ISocialIcon
96
} from '@dvcorg/gatsby-theme/src/components/SocialIcon'
10-
import { ReactComponent as DiscordSVG } from '@dvcorg/gatsby-theme/src/components/SocialIcon/discord.svg'
11-
import { ReactComponent as GithubSVG } from '@dvcorg/gatsby-theme/src/components/SocialIcon/github.svg'
12-
import { ReactComponent as TwitterSVG } from '@dvcorg/gatsby-theme/src/components/SocialIcon/twitter.svg'
137
import { getFirstPage } from '@dvcorg/gatsby-theme/src/utils/shared/sidebar'
148

159
import { ReactComponent as LogoSVG } from '../../../../../static/img/dvc_by_lakefs_white.svg'
10+
import LayoutWidthContainer from '../LayoutWidthContainer'
11+
import Link from '../Link'
12+
import { ReactComponent as DiscordSVG } from '../SocialIcon/discord.svg'
13+
import { ReactComponent as GithubSVG } from '../SocialIcon/github.svg'
14+
import { ReactComponent as TwitterSVG } from '../SocialIcon/twitter.svg'
15+
16+
import * as styles from './styles.module.css'
1617

1718
const docsPage = getFirstPage()
1819

packages/gatsby-theme/src/components/LayoutHeader/Nav/LinkItems/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import cn from 'classnames'
22

3-
import { IPopupProps } from '@dvcorg/gatsby-theme/src/components/LayoutHeader/Nav/Popup'
4-
import Link from '@dvcorg/gatsby-theme/src/components/Link'
53
import menuData from '@dvcorg/gatsby-theme/src/data/menu'
64
import { logEvent } from '@dvcorg/gatsby-theme/src/utils/front/plausible'
75

@@ -11,6 +9,8 @@ import usePopup, {
119
import { ReactComponent as ArrowDownSVG } from '../../../../../../../static/img/arrow-down-icon.svg'
1210
import { ReactComponent as ArrowUpSVG } from '../../../../../../../static/img/arrow-up-icon.svg'
1311
import { ReactComponent as EllipsisIcon } from '../../../../../../../static/img/ellipsis.svg'
12+
import Link from '../../../Link'
13+
import { IPopupProps } from '../Popup'
1414

1515
import * as styles from './styles.module.css'
1616

packages/gatsby-theme/src/components/LayoutHeader/Nav/Popup/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import cn from 'classnames'
22
import { PropsWithChildren } from 'react'
33

4-
import Link from '@dvcorg/gatsby-theme/src/components/Link'
54
import menuData from '@dvcorg/gatsby-theme/src/data/menu'
65
import { logEvent } from '@dvcorg/gatsby-theme/src/utils/front/plausible'
76

7+
import Link from '../../../Link'
8+
89
import * as styles from './styles.module.css'
910

1011
export interface IPopupProps {

packages/gatsby-theme/src/components/LayoutHeader/Nav/SocialIcons/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import SocialIcon, {
2-
ISocialIconProps
3-
} from '@dvcorg/gatsby-theme/src/components/SocialIcon'
1+
import SocialIcon, { ISocialIconProps } from '../../../SocialIcon'
42

53
import * as styles from './styles.module.css'
64

packages/gatsby-theme/src/components/LayoutHeader/Nav/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import LinkItems from '@dvcorg/gatsby-theme/src/components/LayoutHeader/Nav/LinkItems'
2-
import SocialIcons from '@dvcorg/gatsby-theme/src/components/LayoutHeader/Nav/SocialIcons'
3-
import PseudoButton from '@dvcorg/gatsby-theme/src/components/PseudoButton'
41
import { logEvent } from '@dvcorg/gatsby-theme/src/utils/front/plausible'
52

3+
import PseudoButton from '../../PseudoButton'
4+
5+
import LinkItems from './LinkItems'
6+
import SocialIcons from './SocialIcons'
67
import * as styles from './styles.module.css'
78

89
const Nav: React.FC = () => (

packages/gatsby-theme/src/components/PseudoButton/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import cn from 'classnames'
22

3-
import Link, { ILinkProps } from '@dvcorg/gatsby-theme/src/components/Link'
3+
import Link, { ILinkProps } from '../Link'
44

55
import * as styles from './styles.module.css'
66

0 commit comments

Comments
 (0)