Small fixes

This commit is contained in:
Justin Edmund 2020-09-25 06:08:57 -07:00
parent f1f74f06c7
commit f1f6352b22
2 changed files with 2 additions and 3 deletions

View file

@ -2,7 +2,6 @@ import React, { useEffect, useState } from 'react'
import api from '~utils/api' import api from '~utils/api'
import history from '~utils/history' import history from '~utils/history'
import WeaponUnit from '~components/WeaponUnit/WeaponUnit' import WeaponUnit from '~components/WeaponUnit/WeaponUnit'
import Button from '~components/Button/Button' import Button from '~components/Button/Button'

View file

@ -7,7 +7,7 @@ interface Props {}
interface NewProps extends RouteComponentProps<Props> {} interface NewProps extends RouteComponentProps<Props> {}
const New: React.FC<NewProps> = (props: NewProps) => { const New: React.FC<NewProps> = (props: NewProps) => {
const [cookies, setCookie] = useCookies(['userId']) const [cookies, setCookie] = useCookies(['user'])
function callback(path: string) { function callback(path: string) {
// This is scuffed, how do we do this natively? // This is scuffed, how do we do this natively?