diff --git a/src/components/GridRep/index.css b/src/components/GridRep/index.css index 16135fb9..d7993b5c 100644 --- a/src/components/GridRep/index.css +++ b/src/components/GridRep/index.css @@ -29,6 +29,7 @@ .GridRep .grid_weapons { list-style: none; + margin: 0; padding: 0; } diff --git a/src/components/GridRep/index.tsx b/src/components/GridRep/index.tsx index 7386e627..2a8574f7 100644 --- a/src/components/GridRep/index.tsx +++ b/src/components/GridRep/index.tsx @@ -2,8 +2,8 @@ import React, { useEffect, useState } from 'react' import './index.css' -import mainhandImages from '../../images/mainhand/*.jpg' -import gridImages from '../../images/grid/*.jpg' +import mainhandImages from '../../images/weapon-main/*.jpg' +import gridImages from '../../images/weapon-grid/*.jpg' interface Props { shortcode: string @@ -43,7 +43,7 @@ const GridRep = (props: Props) => { ? : } @@ -53,7 +53,7 @@ const GridRep = (props: Props) => { ? : } diff --git a/src/components/Party/index.tsx b/src/components/Party/index.tsx index fa0587c6..cbed37e5 100644 --- a/src/components/Party/index.tsx +++ b/src/components/Party/index.tsx @@ -35,12 +35,14 @@ interface Props { const Party = (props: Props) => { const [cookies, setCookie] = useCookies(['user']) - const headers = (cookies.user) ? { + const headers = (cookies.user != null) ? { headers: { 'Authorization': `Bearer ${cookies.user.access_token}` } } : {} + console.log(headers) + // Grid data const [characters, setCharacters] = useState>({}) const [weapons, setWeapons] = useState>({}) diff --git a/src/routes/ProfileRoute/index.tsx b/src/routes/ProfileRoute/index.tsx index ec90c590..dfce3e36 100644 --- a/src/routes/ProfileRoute/index.tsx +++ b/src/routes/ProfileRoute/index.tsx @@ -20,7 +20,7 @@ interface User { interface Party { id: string shortcode: string - grid: GridWeapon[] + weapons: GridWeapon[] } interface ProfileProps extends RouteComponentProps {} @@ -90,7 +90,7 @@ const ProfileRoute: React.FC = ({ history, match }) => { parties.map((party, i) => { return