Skip to content

Commit 908e99c

Browse files
committed
support button
1 parent d31e26e commit 908e99c

File tree

4 files changed

+31
-1
lines changed

4 files changed

+31
-1
lines changed

β€Žui/package-lock.jsonβ€Ž

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žui/package.jsonβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"react-select": "^5.7.0",
2121
"react-spinners": "^0.13.8",
2222
"react-toastify": "^9.1.1",
23+
"react-tooltip": "^5.10.1",
2324
"ts-loader": "^9.4.2",
2425
"typescript": "^4.9.5",
2526
"uuid": "^9.0.0",

β€Žui/src/App.tsxβ€Ž

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from "react";
22
import { v4 as uuidv4 } from 'uuid';
33
import posthog from 'posthog-js';
4-
4+
import { Tooltip } from 'react-tooltip'
55

66

77
import EnterImage from './assets/images/enter.svg';
@@ -23,6 +23,7 @@ import { ClipLoader } from "react-spinners";
2323
import { FiSettings } from "react-icons/fi";
2424
import {AiFillWarning} from "react-icons/ai";
2525
import { ConnectedDataSource, DataSourceType } from "./data-source";
26+
import {MdOutlineSupportAgent} from "react-icons/md";
2627

2728
export interface AppState {
2829
query: string
@@ -281,7 +282,15 @@ export default class App extends React.Component <{}, AppState>{
281282
render() {
282283
return (
283284
<div>
285+
<Tooltip id="my-tooltip" style={{fontSize: "18px"}}/>
284286
<ToastContainer className='z-50' theme="colored" />
287+
<a href="https://discord.com/channels/1060085859497549844/1086664063767023636" rel="noreferrer" target='_blank'>
288+
<MdOutlineSupportAgent data-tooltip-id="my-tooltip"
289+
data-tooltip-content="πŸ•’ 24/7 live support on Discord πŸ‘¨β€πŸ”§"
290+
data-tooltip-place="bottom"
291+
className="absolute left-0 z-30 hover:fill-[#a7a1fe] fill-[#8983e0] float-left ml-6 mt-6 text-[42px] hover:cursor-pointer transition-all duration-300 hover:drop-shadow-2xl">
292+
</MdOutlineSupportAgent>
293+
</a>
285294
<FiSettings onClick={this.openModal} stroke={"#8983e0"}
286295
className="absolute right-0 z-30 float-right mr-6 mt-6 text-[42px] hover:cursor-pointer hover:rotate-90 transition-all duration-300 hover:drop-shadow-2xl">
287296
</FiSettings>

β€Žui/src/index.tsxβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import './assets/css/index.css';
44
import App from './App';
55
import { PostHogProvider} from 'posthog-js/react'
66
import posthog from 'posthog-js';
7+
import 'react-tooltip/dist/react-tooltip.css'
78

89
posthog.init(
910
"phc_unIQdP9MFUa5bQNIKy5ktoRCPWMPWgqTbRvZr4391Pm",

0 commit comments

Comments
Β (0)