fix: examples layout

This commit is contained in:
Felix Roos 2023-11-17 20:54:48 +01:00
parent c6f89431d9
commit 34c1f3c7de

View file

@ -46,18 +46,17 @@ export function WelcomeTab({ context }) {
to ensure ongoing development 💖 to ensure ongoing development 💖
</p> </p>
<h2 className="text-xl mb-2">examples</h2> <h2 className="text-xl mb-2">examples</h2>
<div className="not-prose">
{Object.entries(tunes).map(([key, tune]) => ( {Object.entries(tunes).map(([key, tune]) => (
<a <a
key={key} key={key}
className="mr-4 hover:opacity-50 cursor-pointer inline-block" className="mr-4 hover:opacity-50 cursor-pointer inline-block"
onClick={() => { onClick={() => context.handleUpdate(tune)}
console.log('clikkk', tune);
context.handleUpdate(tune);
}}
> >
{key} {key}
</a> </a>
))} ))}
</div> </div>
</div>
); );
} }