-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added voting to replies * created hidden state * made voting buttons a component * added new voting component to pages * reverted useState * halfway there * tweaks * thank god for chatGPT * added patch routes * moved voting hook call inside vote container * added votes for comments * hive voting content working * removed useState * content content container voting working * fixed conditional styling * commented out voting container in replies to deploy --------- Co-authored-by: Tom Slanda <[email protected]>
- Loading branch information
Showing
13 changed files
with
283 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
import { Link } from "react-router-dom"; | ||
|
||
|
||
const HomeContentContainer = ({ item }: { item: any }) => { | ||
return ( | ||
<> | ||
<div | ||
className="p-3 mx-auto my-2 max-w-xl bg-gray-300 xs:rounded-none sm:rounded-md hover:bg-gray-200" | ||
id={item.Id} | ||
> | ||
<Link to={`/hive/uuid/${item.Uuid}/content`}> | ||
<div className="p-2 mt-2 hover:cursor-pointer "> | ||
<p className="text-xl">{item.Name}</p> | ||
</div> | ||
</Link> | ||
</div> | ||
</> | ||
) | ||
<div | ||
className="p-3 mx-auto my-2 max-w-xl bg-gray-300 xs:rounded-none sm:rounded-md hover:bg-gray-200" | ||
id={item.Id} | ||
> | ||
<Link to={`/hive/uuid/${item.Uuid}/content`}> | ||
<div className="p-2 mt-2 hover:cursor-pointer "> | ||
<p className="text-xl">{item.Name}</p> | ||
</div> | ||
</Link> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default HomeContentContainer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.