Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FeedbackfFsh button #155

Merged
merged 3 commits into from
Sep 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions components/FeedbackFishButton.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { FeedbackFish } from '@feedback-fish/react';

const FeedbackFishButton = () => {
// Get your projectId from your dashboard at feedback.fish/app
return (
<FeedbackFish projectId="36a0493932a949">
<button className="fixed right-4 bottom-4 hidden rounded-lg border border-blue-100 bg-blue-50 px-6 py-3 font-medium text-blue-600 shadow-sm shadow-blue-50 lg:block">
Give us feedback
</button>
</FeedbackFish>
);
};

export default FeedbackFishButton;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"format": "npx prettier --write ."
},
"dependencies": {
"@feedback-fish/react": "^1.2.1",
"@lottiefiles/react-lottie-player": "^3.4.7",
"@reduxjs/toolkit": "^1.6.2",
"@tailwindcss/line-clamp": "^0.4.0",
Expand Down
2 changes: 2 additions & 0 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { REFRESH_TOKEN_KEY } from '@/config';
import { login, logout } from '@/slices/user';
import { AnnouncementModal } from '@/components/Announcement';
import { clearWagmiStorage } from '@/utils';
import FeedbackFishButton from '@/components/FeedbackFishButton';

const App = ({ Component, pageProps }: AppProps) => {
React.useEffect(() => {
Expand Down Expand Up @@ -62,6 +63,7 @@ const App = ({ Component, pageProps }: AppProps) => {
<AnnouncementModal />

<Authenticator />
<FeedbackFishButton />
</AppProvider>
);
};
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1683,6 +1683,11 @@
"@ethersproject/properties" "^5.5.0"
"@ethersproject/strings" "^5.5.0"

"@feedback-fish/react@^1.2.1":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@feedback-fish/react/-/react-1.2.1.tgz#b4d226f310df936517e9e5e82397806a5df4e2d8"
integrity sha512-4YFD2hE93xBIT/Ko0x0l6UB0OyaxJcWKLGrnznsUVoLE5Q9vB8I1LEbMySYyuvbU9ul3yM3FjGkVZhYVPdwEyA==

"@gar/promisify@^1.0.1":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.2.tgz#30aa825f11d438671d585bd44e7fd564535fc210"
Expand Down