Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush3160 committed Feb 19, 2024
1 parent 8569226 commit 85af973
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/docs/src/routes/tutorial/tutorial-content-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ import { component$, useSignal } from '@builder.io/qwik';
import { ensureDefaultFiles, type TutorialStore } from './layout';

export const TutorialContentFooter = component$(({ store }: TutorialContentFooterProps) => {
let solutionViewState = useSignal(false);
let solutionViewSig = useSignal(false);

return (
<div class="content-footer">
<div>
{solutionViewState.value ? (
{solutionViewSig.value ? (
<button
preventdefault:click
class="show-me"
onClick$={() => {
store.files = ensureDefaultFiles(store.app.problemInputs);
solutionViewState.value = false;
solutionViewSig.value = false;
}}
type="button"
>
Expand All @@ -25,7 +25,7 @@ export const TutorialContentFooter = component$(({ store }: TutorialContentFoote
class="show-me"
onClick$={() => {
store.files = ensureDefaultFiles(store.app.solutionInputs);
solutionViewState.value = true;
solutionViewSig.value = true;
}}
type="button"
>
Expand Down

0 comments on commit 85af973

Please sign in to comment.