Skip to content

Commit

Permalink
fix: remaining days and mobile view issue of conference banners (#2306)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatnema authored Nov 9, 2023
1 parent 08c8b90 commit 193209c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions components/campaigns/AnnoucementHero.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Paragraph from '../typography/Paragraph'
import Button from '../buttons/Button'
import Heading from '../typography/Heading'
import Container from '../layout/Container'
import AnnouncementRemainingDays from './AnnouncementRamainingDays'
import AnnouncementRemainingDays from './AnnouncementRemainingDays'
import ArrowLeft from '../icons/ArrowLeft'
import ArrowRight from '../icons/ArrowRight'

Expand All @@ -25,7 +25,7 @@ export default function AnnouncementHero({ className = '', small = false, hideVi
const [activeIndex, setActiveIndex] = useState(0);

const cfpDeadlineIndia = '2023-11-30T06:00:00Z'
const cfpDeadlineFrance = '2023-12-6T06:00:00Z'
const cfpDeadlineFrance = '2023-12-06T06:00:00Z'
const showBannerIndia = shouldShowBanner(cfpDeadlineIndia);
const showBannerFrance = shouldShowBanner(cfpDeadlineFrance);

Expand Down Expand Up @@ -116,7 +116,7 @@ export default function AnnouncementHero({ className = '', small = false, hideVi
<ArrowLeft className='w-4 text-white' />
</div>
<div className='relative w-5/6 flex flex-col gap-2 justify-center items-center'>
<div className='relative w-[17rem] h-[19rem] lg:w-[38rem] lg:h-[17rem] overflow-hidden'>
<div className='relative w-full h-[18rem] lg:w-[38rem] lg:h-[17rem] overflow-hidden'>
{banners.map((banner, index) => (
banner.show && (
<Banner
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import moment from 'moment';
import { mount } from '@cypress/react';
import AnnouncementRemainingDays from '../../../../components/campaigns/AnnouncementRamainingDays';
import AnnouncementRemainingDays from '../../../../components/campaigns/AnnouncementRemainingDays';

describe('AnnouncementRemainingDays', () => {
it('displays correct countdown text', () => {
Expand Down

0 comments on commit 193209c

Please sign in to comment.