Skip to content
Open
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
2 changes: 0 additions & 2 deletions src/components/Category/Category.css

This file was deleted.

1 change: 0 additions & 1 deletion src/components/Category/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
CategoryLink,
CategoryList,
} from "./styles";
import "./Category.css";

export default function Category({ name, options = [] }) {
return (
Expand Down
10 changes: 5 additions & 5 deletions src/components/Fav/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Modal from "components/Modal";
import Login from "components/Login";
import { useLocation } from "wouter";

import "./Fav.css";
import { GifFav, GifFavIcon } from "./styles";

export default function Fav({ id }) {
const { isLogged, addFav, favs } = useUser();
Expand Down Expand Up @@ -32,11 +32,11 @@ export default function Fav({ id }) {

return (
<>
<button className="gf-Fav" onClick={handleClick}>
<span aria-label={label} role="img">
<GifFav className="gf-Fav" onClick={handleClick}>
<GifFavIcon aria-label={label} role="img">
{emoji}
</span>
</button>
</GifFavIcon>
</GifFav>
{showModal && (
<Modal onClose={handleClose}>
<Login onLogin={handleLogin} />
Expand Down
16 changes: 9 additions & 7 deletions src/components/Fav/Fav.css → src/components/Fav/styles.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
.gf-Fav {
import styled from "@emotion/styled";

export const GifFav = styled.button`
background: rgba(255, 172, 172, .3);
border: 0;
border-radius: 100px;
cursor: pointer;
width: 30px;
height: 30px;
transition: all .3s ease;
}

.gf-Fav:hover {
background: rgba(255, 172, 172, .8);
}
:hover{
background: rgba(255, 172, 172, .8);
}
`

.gf-Fav span {
export const GifFavIcon = styled.span`
display: block;
width: 20px;
}
`