@@ -158,10 +158,10 @@ export default class SingleCreature extends React.Component {
diff --git a/src/components/portal/Single/Location.js b/src/components/portal/Single/Location.js
index 9c82e4e..ba8133d 100644
--- a/src/components/portal/Single/Location.js
+++ b/src/components/portal/Single/Location.js
@@ -2,7 +2,7 @@ import React from 'react';
import API from '../../SpreadsheetData';
import { observer, inject } from 'mobx-react';
import Single from './_base';
-import { PageNotFound, Initiative } from '../../Snippets';
+import { PageNotFound, InitiativeIcon } from '../../Snippets';
@inject((stores, props, context) => props) @observer
export default class SingleLocation extends React.Component {
@@ -40,7 +40,7 @@ export default class SingleLocation extends React.Component {
{card_data.gsx$initiative && (
Initiative:
-
+
)}
>}
@@ -65,7 +65,7 @@ export default class SingleLocation extends React.Component {
{card_data.gsx$initiative && (
Initiative:
-
+
)}
>}
diff --git a/src/components/portal/Single/Mugic.js b/src/components/portal/Single/Mugic.js
index 67ae565..da89433 100644
--- a/src/components/portal/Single/Mugic.js
+++ b/src/components/portal/Single/Mugic.js
@@ -3,7 +3,7 @@ import API from '../../SpreadsheetData';
import s from '../../../styles/app.style';
import { observer, inject } from 'mobx-react';
import Single from './_base';
-import { PageNotFound, Mugic, Tribe } from '../../Snippets';
+import { PageNotFound, MugicIcon, TribeIcon } from '../../Snippets';
@inject((stores, props, context) => props) @observer
export default class SingleMugic extends React.Component {
@@ -35,7 +35,7 @@ export default class SingleMugic extends React.Component {
}
else {
for (let i = 0; i < parseInt(card_data.gsx$cost); i++) {
- cost.push(
);
+ cost.push(
);
}
}
return cost;
@@ -49,7 +49,7 @@ export default class SingleMugic extends React.Component {
col0={<>
Tribe:
-
+
{tribe}
{card_data.gsx$cost !== "" && (<>
@@ -86,7 +86,7 @@ export default class SingleMugic extends React.Component {
col0={<>
Tribe:
-
+
{tribe}
{card_data.gsx$cost !== "" && (<>
diff --git a/src/components/portal/Single/_base.js b/src/components/portal/Single/_base.js
index 029625b..c540f7f 100644
--- a/src/components/portal/Single/_base.js
+++ b/src/components/portal/Single/_base.js
@@ -3,7 +3,7 @@ import { observable } from "mobx";
import { observer, inject } from 'mobx-react';
import { Link } from 'react-router-dom';
import API from '../../SpreadsheetData';
-import { Rarity, Ability } from '../../Snippets';
+import { RarityIcon, Ability } from '../../Snippets';
import s from '../../../styles/app.style';
// own "name" display function
@@ -74,7 +74,7 @@ export default class Single extends React.Component {
{card.gsx$rarity && (<>
Rarity:
-
+
{card.gsx$rarity}
diff --git a/src/index.js b/src/index.js
index b8397b1..99d31b0 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,190 +1,10 @@
import React from 'react';
-import { render } from 'react-dom';
-import { BrowserRouter as Router, Link, Route, Switch, Redirect } from 'react-router-dom';
-import loadable from '@loadable/component';
+import ReactDOM from 'react-dom';
+import App from './components/app';
-/* Components */
-import API from './components/SpreadsheetData';
-import { PageNotFound, UnderConstruction, Donate, Loading } from './components/Snippets';
-import Create from './components/create/index';
-
-const EnterTheCode = loadable(
- () => import('./components/entercode'),
- { fallback:
}
-);
-
-const Home = loadable(
- () => import('./components/home'),
- { fallback:
}
-);
-
-const Portal = loadable(
- () => import('./components/portal'),
- { fallback:
}
-);
-
-const Collection = loadable(
- () => import('./components/collection'),
- { fallback:
}
-);
-
-/**
- * This function is to define beta routes
- */
-function BetaRoutingWrapper() {
- return (
-
-
-
- {({ location }) => }
-
-
-
- );
-}
-
-function Routing() {
- return (
-
-
-
-
-
-
-
-
-
- );
-}
-
-function Base(props) {
- // Configuration for the language and background
- // Images managed in css file
- const language = "ENG";
- const bkgrnd = "05";
-
- const children =
;
-
- return (
- <>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ©2008 Chaotic USA Entertainment Group, Inc.
-
- U.S. Pat 5810666 and 5954332 and other pending patent applications. All Rights Reserved.
-
-
-
-
-
-
-
-
-
-
-
-
- >
- );
-}
-
-render(
-
-
-
- , document.getElementById('root'),
+ReactDOM.render(
+
+
+ ,
+ document.getElementById('root')
);
diff --git a/tsconfig.json b/tsconfig.json
index eebdd7f..29721b5 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -14,7 +14,7 @@
"noEmit": true,
// Enable strictest settings like strictNullChecks & noImplicitAny.
// "strict": true,
- "noImplicitAny": true,
+ "noImplicitAny": false,
"noImplicitThis": true,
"strictNullChecks": true,
"alwaysStrict": false,
@@ -47,11 +47,11 @@
"inlineSourceMap": true
},
"include": [
- "src/components"
+ "src/components",
+ ".eslintrc.js"
],
"exclude": [
"build",
- "node_modules",
"**/*.spec.ts"
]
}