Skip to content

Commit

Permalink
feat: add chatwoot
Browse files Browse the repository at this point in the history
  • Loading branch information
0xApotheosis committed Jan 9, 2024
1 parent 0dad10d commit 448f08e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
VITE_FOO=bar
# Feature flags
VITE_FEATURE_MIXPANEL=true
VITE_FEATURE_CHATWOOT=false

VITE_FOO=bar

# chat woot
VITE_CHATWOOT_TOKEN=jmoXp9BPMSPEYHeJX5YKT15Q
VITE_CHATWOOT_URL=https://app.chatwoot.com
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import './App.css'

import { Center } from '@chakra-ui/react'
import { createBrowserRouter, RouterProvider } from 'react-router-dom'
import { ChatwootButton } from 'components/Chatwoot'
import { SelectPair } from 'components/SelectPair'
import { Status } from 'components/Status/Status'
import { TradeInput } from 'components/TradeInput'
Expand All @@ -27,6 +28,7 @@ function App() {
return (
<Center width='full' height='100vh' flexDir='column'>
<RouterProvider router={router} />
<ChatwootButton />
</Center>
)
}
Expand Down
3 changes: 3 additions & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ interface ImportMetaEnv {
readonly VITE_FOO: string
readonly VITE_FEATURE_MIXPANEL: boolean
readonly VITE_MIXPANEL_TOKEN: string
readonly VITE_CHATWOOT_URL: string
readonly VITE_CHATWOOT_TOKEN: string
readonly VITE_FEATURE_CHATWOOT: boolean
}

interface ImportMeta {
Expand Down

0 comments on commit 448f08e

Please sign in to comment.