mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 22:24:11 +00:00
Refactor imports
* refactor: implement import lint
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user