From 905694b9d00457421e47cacd80535ce0a482e897 Mon Sep 17 00:00:00 2001 From: Thierry Parlier <48807534+Angra974@users.noreply.github.com> Date: Fri, 6 Oct 2023 12:06:16 +0400 Subject: [PATCH] Clean up file path and import (#1250) * Clean up file path and import * lint fixed --------- Co-authored-by: Priyankar Pal <88102392+priyankarpal@users.noreply.github.com> --- src/App.jsx | 2 +- src/common/home/Sponsors.jsx | 8 +++++--- src/index.jsx | 4 ++-- src/plays/github-user-finder/components/ProfileCard.jsx | 2 +- src/plays/personal-profile-card/PersonalProfileCard.tsx | 2 +- .../Components/CardContainer.jsx | 2 +- .../{PrioitySearch.js => PrioitySearch.jsx} | 0 .../{ReactTransitions.js => ReactTransitions.jsx} | 0 .../{TransitionSearch.js => TransitionSearch.jsx} | 0 src/plays/video-preview/Card.tsx | 2 +- 10 files changed, 12 insertions(+), 10 deletions(-) rename src/plays/react-transitions/{PrioitySearch.js => PrioitySearch.jsx} (100%) rename src/plays/react-transitions/{ReactTransitions.js => ReactTransitions.jsx} (100%) rename src/plays/react-transitions/{TransitionSearch.js => TransitionSearch.jsx} (100%) diff --git a/src/App.jsx b/src/App.jsx index 5c8c0c7e3b..bf142a1aa5 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,4 +1,4 @@ -import 'App.css'; +import './App.css'; import { Outlet } from 'react-router-dom'; function App() { diff --git a/src/common/home/Sponsors.jsx b/src/common/home/Sponsors.jsx index a34841f0db..4cd08d6d3d 100644 --- a/src/common/home/Sponsors.jsx +++ b/src/common/home/Sponsors.jsx @@ -47,10 +47,11 @@ const Sponsors = () => {

Event Partners

- {eventPartners.map((p) => ( + {eventPartners.map((p, index) => ( @@ -72,10 +73,11 @@ const Sponsors = () => {

Event Sponsors

- {eventSponsors.map((s) => ( + {eventSponsors.map((s, index) => ( @@ -142,7 +144,7 @@ const Sponsors = () => { alignItems: 'center' }} > - {/* {primeSponsors.map((p) => ( + {/* {primeSponsors.map((p,index) => ( abcd diff --git a/src/index.jsx b/src/index.jsx index d80e9f454e..20a60ad8bd 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -1,9 +1,9 @@ import RouteDefs from 'common/routing/RouteDefs'; import { SearchContextProvider } from 'common/search/search-context'; -import 'index.css'; +import './index.css'; import React, { useState } from 'react'; import { createRoot } from 'react-dom/client'; -import reportWebVitals from 'reportWebVitals'; +import reportWebVitals from './reportWebVitals'; import register from './registerServiceWorker'; import ErrorBoundry from './ErrorBoundary/ErrorBoundary'; import Notification from 'common/components/Notification'; diff --git a/src/plays/github-user-finder/components/ProfileCard.jsx b/src/plays/github-user-finder/components/ProfileCard.jsx index f6e1de7cb4..8f0983cb78 100644 --- a/src/plays/github-user-finder/components/ProfileCard.jsx +++ b/src/plays/github-user-finder/components/ProfileCard.jsx @@ -1,6 +1,6 @@ import React from 'react'; import { useResultContext } from '../context/ResultContext'; -import { formatDate } from '../../../common/utils/commonUtils'; +import { formatDate } from 'common/utils/commonUtils'; const ProfileCard = () => { const { results } = useResultContext(); diff --git a/src/plays/personal-profile-card/PersonalProfileCard.tsx b/src/plays/personal-profile-card/PersonalProfileCard.tsx index 08b1ecbf30..e724828e64 100644 --- a/src/plays/personal-profile-card/PersonalProfileCard.tsx +++ b/src/plays/personal-profile-card/PersonalProfileCard.tsx @@ -1,7 +1,7 @@ import PlayHeader from 'common/playlists/PlayHeader'; import React, { useState, ChangeEvent, useEffect } from 'react'; -import useLocalStorage from '../../common/hooks/useLocalStorage'; +import useLocalStorage from 'common/hooks/useLocalStorage'; import ProfileType from './types'; import ProfileCard from './components/profile-card'; import ProfileForm from './components/profile-form'; diff --git a/src/plays/random-quote-card-generator/Components/CardContainer.jsx b/src/plays/random-quote-card-generator/Components/CardContainer.jsx index ddbc0515e4..96adf15f95 100644 --- a/src/plays/random-quote-card-generator/Components/CardContainer.jsx +++ b/src/plays/random-quote-card-generator/Components/CardContainer.jsx @@ -1,6 +1,6 @@ import React, { useEffect, useRef } from 'react'; import { FaQuoteLeft } from 'react-icons/fa'; -import data from '../data'; + const CardContainer = ({ gradientColor, quote, diff --git a/src/plays/react-transitions/PrioitySearch.js b/src/plays/react-transitions/PrioitySearch.jsx similarity index 100% rename from src/plays/react-transitions/PrioitySearch.js rename to src/plays/react-transitions/PrioitySearch.jsx diff --git a/src/plays/react-transitions/ReactTransitions.js b/src/plays/react-transitions/ReactTransitions.jsx similarity index 100% rename from src/plays/react-transitions/ReactTransitions.js rename to src/plays/react-transitions/ReactTransitions.jsx diff --git a/src/plays/react-transitions/TransitionSearch.js b/src/plays/react-transitions/TransitionSearch.jsx similarity index 100% rename from src/plays/react-transitions/TransitionSearch.js rename to src/plays/react-transitions/TransitionSearch.jsx diff --git a/src/plays/video-preview/Card.tsx b/src/plays/video-preview/Card.tsx index 20847a813d..cf1d71af2a 100644 --- a/src/plays/video-preview/Card.tsx +++ b/src/plays/video-preview/Card.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { formatDurationCount, formatViewCount } from '../../common/utils/formatCount'; +import { formatDurationCount, formatViewCount } from 'common/utils/formatCount'; import { GoVerified } from 'react-icons/go'; import { VERIFIED_CHANNEL } from './utils/constants';