Skip to content

Commit

Permalink
Revert "Put datadog-rum back with silm version (#175)
Browse files Browse the repository at this point in the history
* Revert "Put datadog-rum back with silm version (#168)"

This reverts commit f2bfe36.

* Remove datadog related code
  • Loading branch information
AhyoungRyu authored Apr 25, 2024
1 parent eae95fc commit 7dc9c74
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 166 deletions.
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@

# Only for internal use
# VITE_CHAT_AI_WIDGET_KEY=
# VITE_CHAT_AI_WIDGET_DATADOG_CLIENT_TOKEN=
# VITE_CHAT_AI_WIDGET_DATADOG_APP_ID=
2 changes: 0 additions & 2 deletions .github/workflows/package-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ jobs:
npm install
touch .env.production
echo "VITE_CHAT_AI_WIDGET_KEY=${{ secrets.chat_ai_widget_key }}" >> .env.production && \
echo "VITE_CHAT_AI_WIDGET_DATADOG_CLIENT_TOKEN=${{ secrets.datadog_client_token }}" >> .env.production && \
echo "VITE_CHAT_AI_WIDGET_DATADOG_APP_ID=${{ secrets.datadog_app_id }}" >> .env.production
npm run build:npm
- name: Publish to npm
run: |
Expand Down
144 changes: 18 additions & 126 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"styled-components": "^5.3.11"
},
"devDependencies": {
"@datadog/browser-rum-slim": "^5.15.0",
"@types/dompurify": "^3.0.5",
"@types/react": "^18.0.37",
"@types/react-dom": "^18.0.11",
Expand Down
2 changes: 0 additions & 2 deletions src/components/ProviderContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
} from '../context/ConstantContext';
import { WidgetOpenProvider } from '../context/WidgetOpenContext';
import { useChannelStyle } from '../hooks/useChannelStyle';
import useDatadogRum from '../hooks/useDatadog';
import useDynamicAttachModal from '../hooks/useDynamicAttachModal';
import useWidgetLocalStorage from '../hooks/useWidgetLocalStorage';
import { getTheme } from '../theme';
Expand All @@ -31,7 +30,6 @@ const SBComponent = ({ children }: { children: React.ReactElement }) => {
...restConstantProps
} = useConstantState();
useDynamicAttachModal();
useDatadogRum();

const userAgentCustomParams = useRef({
...customUserAgentParam,
Expand Down
33 changes: 0 additions & 33 deletions src/hooks/useDatadog.ts

This file was deleted.

0 comments on commit 7dc9c74

Please sign in to comment.