Added token images
This commit is contained in:
@@ -1,8 +1,32 @@
|
||||
import React from "react";
|
||||
import { Box } from "theme-ui";
|
||||
import { Flex, Image } from "theme-ui";
|
||||
|
||||
import * as tokens from "../tokens";
|
||||
|
||||
// import Token from "./Token";
|
||||
|
||||
function Tokens() {
|
||||
return <Box bg="background" sx={{ width: "128px", minWidth: "128px" }} />;
|
||||
return (
|
||||
<Flex
|
||||
bg="background"
|
||||
sx={{
|
||||
width: "80px",
|
||||
minWidth: "80px",
|
||||
flexDirection: "column",
|
||||
overflow: "auto"
|
||||
}}
|
||||
px={2}
|
||||
>
|
||||
{Object.entries(tokens).map(([id, image]) => (
|
||||
<Image
|
||||
p={2}
|
||||
key={id}
|
||||
src={image}
|
||||
sx={{ width: "64px", height: "64px" }}
|
||||
/>
|
||||
))}
|
||||
</Flex>
|
||||
);
|
||||
}
|
||||
|
||||
export default Tokens;
|
||||
|
||||
Reference in New Issue
Block a user