Commit 9ac1bcf0 authored by Moody Salem's avatar Moody Salem

Make the token warning card not huge

parent 1bb4db54
......@@ -122,12 +122,19 @@ export default function TokenWarningCard({ token, ...rest }: TokenWarningCardPro
)
}
const WarningContainer = styled.div`
max-width: 420px;
width: 100%;
box-sizing: border-box;
padding: 1rem;
`
export function TokenWarningCards({ tokens }: { tokens: { [field in Field]?: Token } }) {
return (
<>
<WarningContainer>
{Object.keys(tokens).map(field =>
tokens[field] ? <TokenWarningCard style={{ marginBottom: 10 }} key={field} token={tokens[field]} /> : null
)}
</>
</WarningContainer>
)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment