Skip to content

Commit

Permalink
Add package to write like chat gpt
Browse files Browse the repository at this point in the history
  • Loading branch information
enesalilii committed Oct 28, 2023
1 parent fb3b1d2 commit fe1f978
Show file tree
Hide file tree
Showing 3 changed files with 276 additions and 3 deletions.
273 changes: 272 additions & 1 deletion frontend/package-lock.json

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

3 changes: 2 additions & 1 deletion frontend/package.json
Expand Up @@ -17,7 +17,8 @@
"redux-thunk": "^2.4.2",
"reselect": "^4.1.8",
"styled-components": "^6.1.0",
"web-vitals": "^2.1.4"
"web-vitals": "^2.1.4",
"write-like-chat-gpt": "^1.0.7"
},
"scripts": {
"start": "react-scripts start",
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/pages/dashboard/dashboard.component.jsx
Expand Up @@ -3,6 +3,7 @@ import {selectCurrentUser} from "../../store/user/user.selector";
import {Navigate} from "react-router-dom";
import {useRef, useState} from "react";
import keyboardImage from '../../assets/keyboard.png'
import WriteLikeChatGPT from 'write-like-chat-gpt'

export function Dashboard() {
const currentUser = useSelector(selectCurrentUser)
Expand Down Expand Up @@ -47,7 +48,7 @@ export function Dashboard() {
{searchRef.current?.value && (
<div className={'docs-container'}
style={{marginTop: '10px', padding: '20px', height: '100vh', overflowY: 'auto'}}>
{docs.map(doc => (<div className="doc" key={doc.id}>{doc.title}</div>))}
{docs.map(doc => (<div className="doc" key={doc.id}><WriteLikeChatGPT text={doc.title} /></div>))}
</div>
)}
</div>
Expand Down

0 comments on commit fe1f978

Please sign in to comment.