Refactor imports

* refactor: implement import lint
This commit is contained in:
Carlos Valente
2022-06-11 23:17:16 +02:00
committed by GitHub
parent c576b6308e
commit dda92ba3a8
111 changed files with 482 additions and 288 deletions
+16 -26
View File
@@ -1,12 +1,15 @@
import React, { useCallback, useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { Image } from '@chakra-ui/react';
import { AnimatePresence, motion } from 'framer-motion';
import navlogo from 'assets/images/logos/LOGO-72.png';
import style from './NavLogo.module.scss';
import { IconButton } from '@chakra-ui/button';
import { Image } from '@chakra-ui/react';
import { IoExpand } from '@react-icons/all-files/io5/IoExpand';
import navlogo from 'assets/images/logos/LOGO-72.png';
import { AnimatePresence, motion } from 'framer-motion';
import PropTypes from 'prop-types';
import navigatorConstants from './navigatorConstants';
import style from './NavLogo.module.scss';
/* Styling for action buttons */
const navButtonStyle = {
@@ -91,27 +94,14 @@ export default function NavLogo(props) {
exit={{ opacity: 0, scaleY: 0, y: -50 }}
className={style.nav}
>
<Link to='/timer' {...tabProps}>
Timer
</Link>
<Link to='/minimal' {...tabProps}>
Minimal Timer
</Link>
<Link to='/sm' {...tabProps}>
Backstage
</Link>
<Link to='/public' {...tabProps}>
Public
</Link>
<Link to='/lower' {...tabProps}>
Lower Thirds
</Link>
<Link to='/pip' {...tabProps}>
PIP
</Link>
<Link to='/studio' {...tabProps}>
Studio Clock
</Link>
{navigatorConstants.map((route) => (
<Link
to={route.url}
key={route.url}
{...tabProps}>
{route.label}
</Link>
))}
</motion.div>
</>
)}
@@ -0,0 +1,11 @@
const navigatorConstants = [
{ url: '/timer', label: 'Timer' },
{ url: '/minimal', label: 'Minimal Timer' },
{ url: '/sm', label: 'Backstage' },
{ url: '/public', label: 'Public' },
{ url: '/lower', label: 'Lower Thirds' },
{ url: '/pip', label: 'PiP' },
{ url: '/studio', label: 'Studio Clock' },
];
export default navigatorConstants;