Removeing unused package (#842)

This commit is contained in:
darth-coder00 2021-10-18 14:42:13 +05:30 committed by GitHub
parent 4c8df43b4e
commit ce568d6aa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 29 deletions

View File

@ -17954,17 +17954,6 @@
"prop-types": "^15.6.2" "prop-types": "^15.6.2"
} }
}, },
"react-tutorial": {
"version": "https://github.com/deuex-solutions/react-tutorial/tarball/master",
"integrity": "sha512-zuCdUOXiUstfSE1cZq4+yk8/jpkjKUholNRd2bhw55SxoF/32yNUtU9JbiLxvkCUcdiiggZJwuW7Evpljmu0AQ==",
"requires": {
"classnames": "^2.2.6",
"lodash": "^4.17.15",
"prop-types": "^15.7.2",
"scroll-smooth": "^1.1.0",
"scrollparent": "^2.0.1"
}
},
"reactjs-localstorage": { "reactjs-localstorage": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/reactjs-localstorage/-/reactjs-localstorage-1.0.1.tgz", "resolved": "https://registry.npmjs.org/reactjs-localstorage/-/reactjs-localstorage-1.0.1.tgz",
@ -18967,16 +18956,6 @@
"compute-scroll-into-view": "^1.0.17" "compute-scroll-into-view": "^1.0.17"
} }
}, },
"scroll-smooth": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/scroll-smooth/-/scroll-smooth-1.1.0.tgz",
"integrity": "sha512-68OUOXKN/ykM/Dbp4Lhza3O9QQUuW/c01WTsZzDOUyVgb1I5QjT/awOHCCbuYTSV1QnExUQ9w+KcxmVxlXIiAg=="
},
"scrollparent": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/scrollparent/-/scrollparent-2.0.1.tgz",
"integrity": "sha1-cV1bnMV3YPsivczDvvtb/gaxoxc="
},
"select-hose": { "select-hose": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz",

View File

@ -81,8 +81,7 @@
"stream-http": "^3.2.0", "stream-http": "^3.2.0",
"styled-components": "^5.2.3", "styled-components": "^5.2.3",
"tailwindcss": "^2.1.4", "tailwindcss": "^2.1.4",
"to-arraybuffer": "^1.0.1", "to-arraybuffer": "^1.0.1"
"react-tutorial": "https://github.com/deuex-solutions/react-tutorial/tarball/master"
}, },
"scripts": { "scripts": {
"start": "NODE_ENV=development BABEL_ENV=development webpack serve --config ./webpack.config.dev.js --env development", "start": "NODE_ENV=development BABEL_ENV=development webpack serve --config ./webpack.config.dev.js --env development",

View File

@ -1,11 +1,11 @@
import { AxiosResponse } from 'axios'; import { AxiosResponse } from 'axios';
import { observer } from 'mobx-react'; import { observer } from 'mobx-react';
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import ReactTutorial from 'react-tutorial'; // import ReactTutorial from 'react-tutorial';
import { searchData } from '../../axiosAPIs/miscAPI'; import { searchData } from '../../axiosAPIs/miscAPI';
import { PAGE_SIZE } from '../../constants/constants'; import { PAGE_SIZE } from '../../constants/constants';
import { SearchIndex } from '../../enums/search.enum'; import { SearchIndex } from '../../enums/search.enum';
import { useTour } from '../../hooks/useTour'; // import { useTour } from '../../hooks/useTour';
type Steps = { type Steps = {
content: string; content: string;
@ -73,8 +73,8 @@ const getSteps = (value: string) => {
}; };
const Tour = () => { const Tour = () => {
const { isTourOpen, handleIsTourOpen } = useTour(); // const { isTourOpen, handleIsTourOpen } = useTour();
const [steps, setSteps] = useState<Steps[]>([]); const [, setSteps] = useState<Steps[]>([]);
useEffect(() => { useEffect(() => {
searchData('', 1, PAGE_SIZE, '', '', '', SearchIndex.TABLE).then( searchData('', 1, PAGE_SIZE, '', '', '', SearchIndex.TABLE).then(
@ -87,7 +87,7 @@ const Tour = () => {
return ( return (
<div> <div>
{isTourOpen ? ( {/* {isTourOpen ? (
<ReactTutorial <ReactTutorial
disableKeyboardNavigation disableKeyboardNavigation
showNumber showNumber
@ -98,7 +98,7 @@ const Tour = () => {
steps={steps} steps={steps}
onRequestClose={() => handleIsTourOpen(false)} onRequestClose={() => handleIsTourOpen(false)}
/> />
) : null} ) : null} */}
</div> </div>
); );
}; };