Remove unknown source from token preview

This commit is contained in:
Mitchell McCaffrey 2021-05-09 19:17:37 +10:00
parent d0531e3f10
commit 5a6bfd8a60

View File

@ -15,7 +15,7 @@ import { useDataURL } from "../../contexts/AssetsContext";
import GridOnIcon from "../../icons/GridOnIcon";
import GridOffIcon from "../../icons/GridOffIcon";
import { tokenSources, unknownSource } from "../../tokens";
import { tokenSources } from "../../tokens";
import Grid from "../Grid";
@ -27,7 +27,7 @@ function TokenPreview({ token }) {
}
}, [token, tokenSourceData]);
const tokenURL = useDataURL(tokenSourceData, tokenSources, unknownSource);
const tokenURL = useDataURL(tokenSourceData, tokenSources);
const [tokenSourceImage] = useImage(tokenURL);
const [stageWidth, setStageWidth] = useState(1);