File tree Expand file tree Collapse file tree 8 files changed +26
-22
lines changed
packages/gatsby-theme/src/components
Documentation/Layout/SearchForm Expand file tree Collapse file tree 8 files changed +26
-22
lines changed Original file line number Diff line number Diff line change 11import Promise from 'promise-polyfill'
22import { useEffect , useState } from 'react'
33
4- import * as styles from '@dvcorg/gatsby-theme/src/components/Documentation/Layout/SearchForm/styles.module.css'
54import { loadResource } from '@dvcorg/gatsby-theme/src/utils/front/resources'
65
6+ import * as styles from './styles.module.css'
7+
78declare global {
89 interface Window {
910 docsearch ?: ( opts : Record < string , unknown > ) => void
Original file line number Diff line number Diff 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'
149import menuData from '@dvcorg/gatsby-theme/src/data/menu'
1510import { 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+
1719export type HamburgerHelpers = {
1820 opened : boolean
1921 setOpened : ( newState : boolean ) => void
Original file line number Diff line number Diff line change 11import cn from 'classnames'
22
33import { 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'
74import 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'
137import { getFirstPage } from '@dvcorg/gatsby-theme/src/utils/shared/sidebar'
148
159import { 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
1718const docsPage = getFirstPage ( )
1819
Original file line number Diff line number Diff line change 11import 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'
53import menuData from '@dvcorg/gatsby-theme/src/data/menu'
64import { logEvent } from '@dvcorg/gatsby-theme/src/utils/front/plausible'
75
@@ -11,6 +9,8 @@ import usePopup, {
119import { ReactComponent as ArrowDownSVG } from '../../../../../../../static/img/arrow-down-icon.svg'
1210import { ReactComponent as ArrowUpSVG } from '../../../../../../../static/img/arrow-up-icon.svg'
1311import { ReactComponent as EllipsisIcon } from '../../../../../../../static/img/ellipsis.svg'
12+ import Link from '../../../Link'
13+ import { IPopupProps } from '../Popup'
1414
1515import * as styles from './styles.module.css'
1616
Original file line number Diff line number Diff line change 11import cn from 'classnames'
22import { PropsWithChildren } from 'react'
33
4- import Link from '@dvcorg/gatsby-theme/src/components/Link'
54import menuData from '@dvcorg/gatsby-theme/src/data/menu'
65import { logEvent } from '@dvcorg/gatsby-theme/src/utils/front/plausible'
76
7+ import Link from '../../../Link'
8+
89import * as styles from './styles.module.css'
910
1011export interface IPopupProps {
Original file line number Diff line number Diff line change 1- import SocialIcon , {
2- ISocialIconProps
3- } from '@dvcorg/gatsby-theme/src/components/SocialIcon'
1+ import SocialIcon , { ISocialIconProps } from '../../../SocialIcon'
42
53import * as styles from './styles.module.css'
64
Original file line number Diff line number Diff line change 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'
41import { 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'
67import * as styles from './styles.module.css'
78
89const Nav : React . FC = ( ) => (
Original file line number Diff line number Diff line change 11import cn from 'classnames'
22
3- import Link , { ILinkProps } from '@dvcorg/gatsby-theme/src/components /Link'
3+ import Link , { ILinkProps } from '.. /Link'
44
55import * as styles from './styles.module.css'
66
You can’t perform that action at this time.
0 commit comments