Skip to content

Commit

Permalink
fix: key
Browse files Browse the repository at this point in the history
  • Loading branch information
YanYuanFE committed May 10, 2024
1 parent 0690f92 commit 13634d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/SideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export const SideBar = () => {
{
pages.map((item, index) => {
return (
<Tooltip content={<p>{item.label}</p>}>
<Button size="icon" key={index} variant={`/${item.value}` === pathname ? 'secondary' : 'ghost'} className="w-12 justify-center" onClick={() => router.push(item.value)}>
<Tooltip content={<p>{item.label}</p>} key={index}>
<Button size="icon" variant={`/${item.value}` === pathname ? 'secondary' : 'ghost'} className="w-12 justify-center" onClick={() => router.push(item.value)}>
{item.icon}
</Button>
</Tooltip>
Expand Down
3 changes: 2 additions & 1 deletion worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ interface ITestOptions {
class CairoWorker {
init = async () => {
await wasmCairo();
greet('Hello World');
}
constructor() {
this.init();
}

async runCairoProgram({cairoProgram, availableGas, printFullMemory, useDBGPrintHint, allWarnings = true, runProfiler = false}: any) {
const res = runCairoProgram(cairoProgram, availableGas, true, printFullMemory, false, useDBGPrintHint);
const res = runCairoProgram(cairoProgram, availableGas, allWarnings, printFullMemory, runProfiler, useDBGPrintHint);
return res;
}

Expand Down

0 comments on commit 13634d7

Please sign in to comment.