Skip to content

Commit

Permalink
Disable premium feature
Browse files Browse the repository at this point in the history
  • Loading branch information
tmedetbekov committed Jul 31, 2023
1 parent 273cab9 commit a5dafad
Show file tree
Hide file tree
Showing 8 changed files with 170 additions and 4,096 deletions.
4,215 changes: 153 additions & 4,062 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
"react-scripts": "^5.0.1",
"react-slick": "^0.29.0",
"react-tooltip": "^5.10.5",
"slick-carousel": "^1.8.1",
"web3": "^1.9.0"
"slick-carousel": "^1.8.1"
},
"scripts": {
"start": "react-scripts start",
Expand Down
7 changes: 0 additions & 7 deletions src/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,11 @@ import App from './components/App/App'
import Faq from './components/Faq/Faq'
import Privacy from './components/Privacy/Privacy'
import NoDataPolicy from './components/Privacy/NoDataPolicy'
import PayMultistep from './components/Premium/PayMultistep'
import Premium from './components/Premium/Premium'
import Profile from './components/Premium/Profile'

function Router() {
return (
<BrowserRouter>
<Routes>
<Route path="/analytics" element={<Premium />} />
<Route path="/premium" element={<Premium />} />
<Route path="/premium-pay" element={<PayMultistep />} />
<Route path="/premium-profile" element={<Profile />} />
<Route path="/privacy" element={<Privacy />} />
<Route path="/no-data-policy" element={<NoDataPolicy />} />
<Route path="/faq" element={<Faq />} />
Expand Down
12 changes: 5 additions & 7 deletions src/components/Banner/Banner.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { Link } from 'react-router-dom'
import Container from '../Container'
import GetWalletActions from '../GetWallet/GetWalletActions'
import Icon from '../Icon'

import './Banner.scss'

Expand All @@ -26,11 +24,11 @@ function Banner() {
Unchain Assets | Go Borderless | Stay Private
</div>
<GetWalletActions />
<div className="mt-5 pt-md-5 pt-sm-0">
<Link to="/premium" className="Banner-link">
<Icon name="arrow-right" /> <span className="ms-2">Get premium features</span>
</Link>
</div>
{/*<div className="mt-5 pt-md-5 pt-sm-0">*/}
{/* <Link to="/premium" className="Banner-link">*/}
{/* <Icon name="arrow-right" /> <span className="ms-2">Get premium features</span>*/}
{/* </Link>*/}
{/*</div>*/}
</div>
</div>
</div>
Expand Down
6 changes: 1 addition & 5 deletions src/components/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import cn from 'classnames'
import throttle from 'lodash.throttle'
import { Component } from 'react'
import { Link } from 'react-router-dom'
import { WalletSwitcher, WalletProfile } from '../Premium/WalletButton'

import Container from '../Container'
import Icon from '../Icon'
Expand Down Expand Up @@ -61,14 +60,11 @@ class Header extends Component {

render() {
const { sticky } = this.state
const navigation = isMobile => (
const navigation = () => (
<div className="nav">
<Link className="nav-item nav-item-yellow" to="/premium" onClick={this.onToggleMenu}>Premium</Link>
<a className="nav-item" target="_blank" rel="noopener noreferrer" href="https://litrex.academy">Academy</a>
<Link className="nav-item" to="/faq">FAQ</Link>
<a className="nav-item" target="_blank" rel="noopener noreferrer" href="https://horizontalsystems.io/">About</a>
<WalletSwitcher isMobile={isMobile} onClicked={this.onToggleMenu} />
<WalletProfile isMobile={isMobile} onClicked={this.onToggleMenu} />
</div>
)

Expand Down
4 changes: 3 additions & 1 deletion src/core/wallet-connect.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import Web3 from 'web3'
import SignClient from './SignClient'
import { WalletConnectModal } from '@walletconnect/modal'
import { setInitializing, setConnecting, setSession } from '../redux/wallet-connect-slice'
import { setAddressInfo } from '../redux/contract-slice'
import { chains } from './chain'

class Web3 {
}

export class WalletConnect {

constructor() {
Expand Down
4 changes: 3 additions & 1 deletion src/core/web3.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { DateTime } from 'luxon'
import Web3 from 'web3'
import abiErc20 from './abi/erc20.json'
import chains from './chain'

class Web3 {
}

class Web3Provider {
constructor() {
this.setWeb3(chains.getChain())
Expand Down
15 changes: 4 additions & 11 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import React from 'react'
import { createRoot } from 'react-dom/client'
import { Provider } from 'react-redux'
import { ModalContextProvider } from './components/Modal/ModalContext'
import { ModalManager } from './components/Modal/ModalManager'
import { initialize } from './redux/wallet-connect-slice'
import { store } from './redux/store'

import 'react-tooltip/dist/react-tooltip.css'
import 'bootstrap/js/dist/dropdown'
Expand All @@ -13,17 +10,13 @@ import './index.scss'
import Router from './Router'
import unregister from './core/serviceWorker'

store.dispatch(initialize())

createRoot(document.getElementById('root'))
.render(
<React.StrictMode>
<Provider store={store}>
<ModalContextProvider>
<ModalManager />
<Router />
</ModalContextProvider>
</Provider>
<ModalContextProvider>
<ModalManager />
<Router />
</ModalContextProvider>
</React.StrictMode>
)

Expand Down

0 comments on commit a5dafad

Please sign in to comment.