mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-22 07:29:08 +00:00
Feat/table (#105)
* feat/table add react-table * feat/table add protected table route * feat/table upgrade dependencies * feat/table support parsing of new properties Co-authored-by: DeepSource Bot <bot@deepsource.io>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import React, { useEffect, useLayoutEffect, useRef, useState } from 'react';
|
||||
import QRCode from 'react-qr-code';
|
||||
import style from './Pip.module.css';
|
||||
import Paginator from 'common/components/views/Paginator';
|
||||
import NavLogo from 'common/components/nav/NavLogo';
|
||||
import { AnimatePresence, motion } from 'framer-motion';
|
||||
import { useEffect, useLayoutEffect, useRef, useState } from 'react';
|
||||
import { formatDisplay } from 'common/utils/dateConfig';
|
||||
import { ReactComponent as Emptyimage } from 'assets/images/empty.svg';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { AnimatePresence, motion } from 'framer-motion';
|
||||
import { useEffect, useState } from 'react';
|
||||
import style from './LowerClean.module.css';
|
||||
import NavLogo from "../../../../common/components/nav/NavLogo";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { AnimatePresence, motion } from 'framer-motion';
|
||||
import { useEffect, useState } from 'react';
|
||||
import style from './LowerLines.module.css';
|
||||
import NavLogo from "../../../../common/components/nav/NavLogo";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { memo, useEffect, useState } from 'react';
|
||||
import React, { memo, useEffect, useState } from 'react';
|
||||
import LowerClean from './LowerClean';
|
||||
import LowerLines from './LowerLines';
|
||||
import { useSearchParams } from 'react-router-dom';
|
||||
@@ -12,7 +12,7 @@ const areEqual = (prevProps, nextProps) => {
|
||||
};
|
||||
|
||||
const Lower = (props) => {
|
||||
const { title } = props;
|
||||
const { title, lower } = props;
|
||||
const [searchParams,] = useSearchParams();
|
||||
const [titles, setTitles] = useState({
|
||||
titleNow: '',
|
||||
@@ -124,15 +124,15 @@ const Lower = (props) => {
|
||||
switch (preset) {
|
||||
case 0:
|
||||
return (
|
||||
<LowerClean lower={props.lower} title={titles} options={lowerOptions} />
|
||||
<LowerClean lower={lower} title={titles} options={lowerOptions} />
|
||||
);
|
||||
case 1:
|
||||
return (
|
||||
<LowerLines lower={props.lower} title={titles} options={lowerOptions} />
|
||||
<LowerLines lower={lower} title={titles} options={lowerOptions} />
|
||||
);
|
||||
default:
|
||||
return (
|
||||
<LowerLines lower={props.lower} title={titles} options={lowerOptions} />
|
||||
<LowerLines lower={lower} title={titles} options={lowerOptions} />
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user