File tree Expand file tree Collapse file tree 4 files changed +11
-16
lines changed
Expand file tree Collapse file tree 4 files changed +11
-16
lines changed Original file line number Diff line number Diff line change 1- import { BIG_BREAKPOINT } from "@constants/BreakPoints" ;
21
3- import type { FC } from "react" ;
42
53import React from "react" ;
6-
74import { useLocation } from "react-router" ;
85import { styled } from "styled-components" ;
96
107import SpeakersCarousel from "@components/Swiper/SpeakersCarousel" ;
8+ import { BIG_BREAKPOINT } from "@constants/BreakPoints" ;
119import { ROUTE_2026_SPEAKERS } from "@constants/routes" ;
1210import conferenceData from "@data/2026.json" ;
1311import { useDocumentTitleUpdater } from "@hooks/useDocumentTitleUpdate" ;
@@ -16,6 +14,8 @@ import Faqs from "./components/Faqs/Faqs";
1614import HomeWTC from "./components/HomeWTC/HomeWTC" ;
1715import Sponsors from "./components/Sponsors/Sponsors" ;
1816
17+ import type { FC } from "react" ;
18+
1919const StyledContainer = styled . div `
2020 padding-bottom: 10rem;
2121
Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ const QrCode: FC<React.PropsWithChildren<QrCodeProps>> = ({
7171 const qrCode : number = parseInt ( e . target . value ) ;
7272 e . preventDefault ( ) ;
7373 setSelectedTrack ( qrCode ) ;
74- setSession ( availableTalks ?. filter ( ( talk ) => talk . roomId == qrCode ) [ 0 ] ) ;
75- if ( session != undefined )
74+ setSession ( availableTalks ?. filter ( ( talk ) => talk . roomId === qrCode ) [ 0 ] ) ;
75+ if ( session !== undefined )
7676 setQrValue (
7777 `https://openfeedback.io/${ openFeedbackId } /${ format ( parseISO ( session . startsAt ) , "yyyy-MM-dd" ) } /${ session . id } ` ,
7878 ) ;
Original file line number Diff line number Diff line change @@ -100,11 +100,12 @@ describe("Speakers component", () => {
100100
101101 // This ensures that both new Date() and Date.now() use our mock date
102102 global . Date = class extends Date {
103- constructor ( ...args ) {
103+ constructor ( ...args : unknown [ ] ) {
104+ super ( ) ;
104105 if ( args . length === 0 ) {
105106 return mockDate ;
106107 }
107- return super ( ...args ) ;
108+ return new originalDate ( ...( args as ConstructorParameters < typeof originalDate > ) ) ;
108109 }
109110
110111 static now ( ) {
@@ -136,11 +137,12 @@ describe("Speakers component", () => {
136137
137138 // This ensures that both new Date() and Date.now() use our mock date
138139 global . Date = class extends Date {
139- constructor ( ...args ) {
140+ constructor ( ...args : unknown [ ] ) {
141+ super ( ) ;
140142 if ( args . length === 0 ) {
141143 return mockDate ;
142144 }
143- return super ( ...args ) ;
145+ return new originalDate ( ...( args as ConstructorParameters < typeof originalDate > ) ) ;
144146 }
145147
146148 static now ( ) {
Original file line number Diff line number Diff line change @@ -63,13 +63,6 @@ const StyledVenue = styled.div`
6363 }
6464` ;
6565
66- const StyledTrainLine = styled . span `
67- background-color: #00f200;
68- font-weight: bold;
69- padding: 1px 2px;
70- font-family: sans-serif;
71- font-size: 12px;
72- ` ;
7366export const StyledLessIcon = styled . img `
7467 position: absolute;
7568 left: -1rem;
You can’t perform that action at this time.
0 commit comments