Skip to content

Commit 57d9d20

Browse files
author
Michael Dijkstra
committed
Use relative paths for library includes
1 parent 7398b95 commit 57d9d20

17 files changed

Lines changed: 34 additions & 26 deletions

File tree

src/components/Chatwoot/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import useChat from 'hooks/useChat'
21
import React, { CSSProperties } from 'react'
32

3+
import useChat from '../../hooks/useChat'
4+
45
const styles: {
56
button: CSSProperties
67
img: CSSProperties

src/components/Drift/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import useChat from 'hooks/useChat'
21
import React, { useState, useEffect, CSSProperties } from 'react'
3-
import useWindowWidth from 'hooks/useWindowWidth'
2+
3+
import useChat from '../../hooks/useChat'
4+
import useWindowWidth from '../../hooks/useWindowWidth'
45

56
const styles: {
67
container: CSSProperties

src/components/HelpScout/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { CSSProperties, useEffect, useState } from 'react'
2-
import useChat from 'hooks/useChat'
3-
import useWindowHeight from 'hooks/useWindowHeight'
2+
3+
import useChat from '../../hooks/useChat'
4+
import useWindowHeight from '../../hooks/useWindowHeight'
45

56
const styles: {
67
wrapper: CSSProperties

src/components/Intercom/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { CSSProperties } from 'react'
2-
import useChat from 'hooks/useChat'
2+
3+
import useChat from '../../hooks/useChat'
34

45
const styles: {
56
wrapper: CSSProperties

src/components/LiveChatLoaderProvider.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState } from 'react'
2-
import * as Providers from 'providers'
3-
import { State, Provider } from 'types'
4-
import { LiveChatLoaderContext } from 'context'
2+
import * as Providers from '../providers'
3+
import { State, Provider } from '../types'
4+
import { LiveChatLoaderContext } from '../context'
55

66
export const LiveChatLoaderProvider = ({
77
provider,

src/components/Messenger/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import React, { CSSProperties, memo } from 'react'
2-
import useProvider from 'hooks/useProvider'
3-
import useChat from 'hooks/useChat'
4-
import { Provider } from 'types'
2+
3+
import { Provider } from '../../types'
4+
import useProvider from '../../hooks/useProvider'
5+
import useChat from '../../hooks/useChat'
56

67
const styles: CSSProperties = {
78
appearance: 'none',

src/components/Userlike/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { CSSProperties } from 'react'
2-
import useChat from 'hooks/useChat'
2+
3+
import useChat from '../../hooks/useChat'
34

45
const styles: {
56
container: CSSProperties

src/context.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { createContext } from 'react'
2-
import { Provider, State } from 'types'
2+
3+
import { Provider, State } from './types'
34

45
interface Context {
56
provider: Provider

src/hooks/useChat.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { useContext, useCallback, useEffect } from 'react'
2-
import { State } from 'types'
3-
import { LiveChatLoaderContext } from 'context'
4-
import * as Providers from 'providers'
2+
3+
import { State } from '../types'
4+
import { LiveChatLoaderContext } from '../context'
5+
import * as Providers from '../providers'
56

67
const requestIdleCallback =
78
typeof window !== 'undefined' ? window.requestIdleCallback : null

src/hooks/useProvider.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useContext } from 'react'
2-
import { Provider } from 'types'
3-
import { LiveChatLoaderContext } from 'context'
2+
3+
import { Provider } from '../types'
4+
import { LiveChatLoaderContext } from '../context'
45

56
const useProvider = (): {
67
provider: Provider

0 commit comments

Comments
 (0)