Skip to content

Commit

Permalink
bring the card hover effect back
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Rb3 committed May 24, 2024
1 parent a2ba853 commit dfc402a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const Card = (props: any) => {
const profile = Social.getr(`${projectId}/profile`) as any;
const allowDonate = _allowDonate ?? true;

if (profile === null) return <CardSkeleton />;

const MAX_DESCRIPTION_LENGTH = 80;

const { name, description } = profile;
Expand Down Expand Up @@ -96,8 +98,6 @@ const Card = (props: any) => {

const tags = getTagsFromSocialProfileData(profile);

if (profile === null) return <CardSkeleton />;

return (
<>
{/* <Modals /> */}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Card/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const CardContainer = styled.div`
margin-right: auto;
transition: all 300ms;
&:hover {
/* transform: translateY(-1rem); */
transform: translateY(-1rem);
}
`;

Expand Down
8 changes: 4 additions & 4 deletions src/pages/Projects/components/ListSection.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VM, props, useMemo } from "alem";
import { props, useMemo } from "alem";
import styled from "styled-components";
import Feed from "@app/components/devs.near/Feed";

Expand All @@ -18,9 +18,9 @@ type Props = {
const ListSection = ({ shouldShuffle, items, renderItem }: Props) => {
const responsive = props.responsive || [];

if (!Feed) {
return <p>Loading...</p>;
}
// if (!Feed) {
// return <p>Loading...</p>;
// }

const _items = useMemo(() => {
if (shouldShuffle) {
Expand Down

0 comments on commit dfc402a

Please sign in to comment.