on master help sign in
sigil: enable icon sigils
commit6f2c2021fdfa3f6131d69d2ed1febf8f92adf772 authorMatilde Park <matilde.park@urbit.org> dateSun 24 Apr 2022, 16:13 (5 years ago) parent4fbcd4e
1 file changed+5−4
components/Sigil.js+5−4
components/Sigil.js+5−4
@@ -1,15 +1,16 @@
11import { sigil, reactRenderer } from "@tlon/sigil-js";
22
3−export const Sigil = ({ patp, size }) => {
3+export const Sigil = ({ patp, size, icon }) => {
44 return (
5− <>
5+ <div className={icon ? "p-1 bg-black" : ""}>
66 {sigil({
77 patp: patp,
88 renderer: reactRenderer,
9− size: size,
9+ size: icon ? size / 2 : size,
1010 colors: ["black", "white"],
11+ icon: icon || false,
1112 })}
12− </>
13+ </div>
1314 );
1415};
1516