Skip to content

Commit

Permalink
feat: add feedback widget
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorusclarence committed Jan 12, 2022
1 parent c3ec889 commit 605128b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"prepare": "husky install"
},
"dependencies": {
"@feedback-fish/react": "^1.2.1",
"@giscus/react": "^1.0.1",
"@headlessui/react": "^1.4.2",
"axios": "^0.24.0",
Expand Down
8 changes: 7 additions & 1 deletion src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { FeedbackFish } from '@feedback-fish/react';
import * as React from 'react';
import CopyToClipboard from 'react-copy-to-clipboard';
import { FiMail } from 'react-icons/fi';
Expand Down Expand Up @@ -27,7 +28,12 @@ export default function Footer() {
<SocialLinks />

<p className='mt-8 text-sm text-gray-600 dark:text-gray-300'>
© Theodorus Clarence {new Date().getFullYear()}
© Theodorus Clarence {new Date().getFullYear()}{' '}
<FeedbackFish projectId='59a0c0e0d549a7'>
<button className='dark:hover:text-gray-100 hover:text-gray-800'>
Got any feedback?
</button>
</FeedbackFish>
</p>
</main>
</footer>
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,11 @@
resolved "https://registry.yarnpkg.com/@fal-works/esbuild-plugin-global-externals/-/esbuild-plugin-global-externals-2.1.2.tgz#c05ed35ad82df8e6ac616c68b92c2282bd083ba4"
integrity sha512-cEee/Z+I12mZcFJshKcCqC8tuX5hG3s+d+9nZ3LabqKF1vKdF41B92pJVCBggjAGORAeOzyyDDKrZwIkLffeOQ==

"@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==

"@giscus/react@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@giscus/react/-/react-1.0.1.tgz#3fae2b5e00912a76cb136679f6229d3d6ea28898"
Expand Down

1 comment on commit 605128b

@vercel
Copy link

@vercel vercel bot commented on 605128b Jan 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.