Added is vehicle checkbox and vehicle type tokens

This commit is contained in:
Mitchell McCaffrey
2020-05-22 20:43:07 +10:00
parent 00c24c34a4
commit a8bd5ab672
7 changed files with 149 additions and 31 deletions

View File

@@ -86,6 +86,11 @@ export function TokenDataProvider({ children }) {
const ownedTokens = tokens.filter((token) => token.owner === userId);
const tokensById = tokens.reduce((obj, token) => {
obj[token.id] = token;
return obj;
}, {});
const value = {
tokens,
ownedTokens,
@@ -94,6 +99,7 @@ export function TokenDataProvider({ children }) {
updateToken,
putToken,
getToken,
tokensById,
};
return (