Skip to content

Commit

Permalink
submit/edit tool form + review
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Jun 4, 2024
1 parent c3b76b4 commit 30da45e
Show file tree
Hide file tree
Showing 11 changed files with 746 additions and 89 deletions.
4 changes: 0 additions & 4 deletions components/Dashboard/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ const Dashboard = ({ postStatus, postType, currentTab }) => {
<PostCard refetch={refetch} user={user} post={post} />
))}

{!loading &&
posts?.map(post => (
<PostCard refetch={refetch} user={user} post={post} />
))}
</div>
{!loading && !posts?.length && (
<EmptyState currentTab={currentTab} draft={false} />
Expand Down
2 changes: 1 addition & 1 deletion components/Dashboard/PostCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const PostCard = ({ post, refetch, user }) => {
)}
{post.type=='tool'? (
<div className="hidden md:block">
<Link href={`/toolbox/post/${post.id}/deal`}>
<Link href={`/toolbox/post/${post.id}?step=3`}>
<button className="text-lg bg-white underline text-black p-3 rounded-full hover:bg-gray-100 ">
<Gift size={18}/>
</button>
Expand Down
2 changes: 1 addition & 1 deletion components/MiniEditor/MiniEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default ({setDescription, initialContent='', height=250, placeholder, dis
return (
<div className={`${showToolbar!==false?'pt-12 py-4':''} border border-gray-300 rounded-xl border-2 relative -mt-2`}>
{showToolbar!==false? <MenuBar editor={editor} />:''}
<div style={{minHeight:height,maxHeight:400}} className="pt-4 px-5 overflow-auto">
<div style={{minHeight:height,maxHeight:400}} className="py-4 text-lg px-5 overflow-auto">
<EditorContent disabled={disabled} editor={editor} />
</div>
</div>
Expand Down
Loading

0 comments on commit 30da45e

Please sign in to comment.