Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: code cleanup #546

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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: 1 addition & 1 deletion components/Buttons/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function Button({className, children, overlay, onClick, type, disabled,test}) {
data-test={test || ""}
type={type}
onClick={onClick}
className={`${overlay ? '' : 'gradient-bg'} flex items-center justify-center text-white h-[54px] rounded-md p-[8px] ${className}`}
className={`${!overlay && 'gradient-bg'} flex items-center justify-center text-white h-[54px] rounded-md p-[8px] ${className}`}
>{children}</button>
);
}
Expand Down
2 changes: 1 addition & 1 deletion components/Form/Cfp/stepTwo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable react/no-unescaped-entities */
import React, { useState, useEffect } from "react";
import React from "react";
import Button from "../../Buttons/button";


Expand Down
2 changes: 0 additions & 2 deletions components/Header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ import cities from '../../config/city-lists.json';
import Venue from '../Venue/venue';
import Announcement from '../announcement';
import Link from 'next/link';
import { useMediaQuery } from 'react-responsive';

function Header() {
const isMobile = useMediaQuery({ maxWidth: '590px' });
return (
<div className='relative'>
<div className='container w-full flex items-center justify-center'>
Expand Down
1 change: 0 additions & 1 deletion components/Slider/slider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Slider from 'react-slick';
import Arrow from '../illustration/arrow';
import React, { useEffect, useState, useRef } from 'react';
import { useMediaQuery } from 'react-responsive';

Expand Down
1 change: 0 additions & 1 deletion components/Speaker/guideline.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { useState } from 'react'
import Plus from '../illustration/plus';
import Heading from '../Typography/heading';
import Button from '../Buttons/button';
import CFPdata from "../../config/cfp-data.json"
const faqs = [
{
q: 'What is AACoT?',
Expand Down
2 changes: 1 addition & 1 deletion components/Venue/venue.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function isEventEnded(date){
return getEventStatus(date) === "Ended";
}

function Venue({ className, city }) {
function Venue({ city }) {

const eventEnded = isEventEnded(city.date);
const textColor = eventEnded ? "text-white": "text-white";
Expand Down
1 change: 0 additions & 1 deletion pages/venue/online/register/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Paper from '../../../../components/Form/paper';
import Sponsors from "../../../../components/Sponsors/sponsors";
import cfpData from "../../../../config/cfp-data.json"

export default function SpeakersForm(){
return(<div><div className='flex justify-center border border-x-0 border-b-0 border-[#333]'>
Expand Down