Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Aug 13, 2024
1 parent d4629ce commit 7bb4216
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/components/pages/artist/Contests.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { Pagination, Skeleton } from '@mui/material'
import Mc from 'assets/images/mascot-empty.png'
<<<<<<< Updated upstream
import Modal from 'components/Modal'
=======
>>>>>>> Stashed changes
import moment from 'moment'
import Image from 'next/image'
import Link from 'next/link'
Expand Down Expand Up @@ -45,7 +42,6 @@ export default function Contests({ id }) {
<Skeleton className='w-full aspect-[343/256]' />
</div>
)
<<<<<<< Updated upstream
if (contestData) {
return (
<div className='-mt-4 lg:mt-0'>
Expand Down Expand Up @@ -143,17 +139,6 @@ export default function Contests({ id }) {
alt=''
className='w-full aspect-[310/166] object-cover'
/>
=======
console.log(data)
return (
<div>
{data?.contests?.length ? (
<div className='grid grid-cols-1 gap-4'>
{data?.contests?.map((contest, index) => (
<div key={contest.slug} className='rounded-mlg p-4 bg-white relative'>
<div className='relative'>
<Image src={contest[locale].image} alt='' className='w-full aspect-[310/166] object-cover' />
>>>>>>> Stashed changes
{moment().isAfter(contest.start_date) && moment().isBefore(contest.end_date) && (
<div className='absolute top-2.5 right-2.5 text-xxs font-semibold leading-[15px] bg-error-100 text-text-error-primary-3 flex items-center gap-1 rounded px-2.5 py-0.5'>
<svg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4' fill='none'>
Expand Down Expand Up @@ -186,11 +171,7 @@ export default function Contests({ id }) {
</div>
)}
{!!data?.count && (
<<<<<<< Updated upstream
<div className='w-full flex justify-center mt-8'>
=======
<div className='w-full flex justify-center -mt-8'>
>>>>>>> Stashed changes
<Pagination
shape='rounded'
count={Math.ceil(data?.count / 4)}
Expand Down

0 comments on commit 7bb4216

Please sign in to comment.