Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Dec 10, 2024
1 parent d37a64c commit 4317670
Showing 1 changed file with 28 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,15 @@
modalStore.trigger(modal);
}
let activeActivity: string | null = null;
let activeActivity: string | null = null;
$page.url.searchParams.forEach((value, key) => {
if (key === 'activity' && value === 'one') {
activeActivity = 'one';
}
else if (key === 'activity' && value === 'two') {
activeActivity = 'two';
}
});
$page.url.searchParams.forEach((value, key) => {
if (key === 'activity' && value === 'one') {
activeActivity = 'one';
} else if (key === 'activity' && value === 'two') {
activeActivity = 'two';
}
});
let tabSet = 0;
</script>
Expand Down Expand Up @@ -95,10 +94,16 @@
</div>
<div
id="activityOne"
class="relative p-4 space-y-4 rounded-md w-full flex flex-col items-center
{activeActivity === 'one' ? 'border-2 border-primary-500' : 'border-2 border-gray-300 border-dashed'}"
>
<span class="absolute -top-3 bg-white font-bold {activeActivity === 'one' ? 'text-primary-500' : 'text-gray-500'}">{m.activityOne()}</span>
class="relative p-4 space-y-4 rounded-md w-full flex flex-col items-center
{activeActivity === 'one'
? 'border-2 border-primary-500'
: 'border-2 border-gray-300 border-dashed'}"
>
<span
class="absolute -top-3 bg-white font-bold {activeActivity === 'one'
? 'text-primary-500'
: 'text-gray-500'}">{m.activityOne()}</span
>
{#if ebiosRmStudy.description}
<p class="text-gray-600">{ebiosRmStudy.description}</p>
{/if}
Expand Down Expand Up @@ -140,10 +145,16 @@
</div>
<div
id="activityTwo"
class="relative p-4 space-y-4 rounded-md w-full flex flex-col items-center
{activeActivity === 'two' ? 'border-2 border-primary-500' : 'border-2 border-gray-300 border-dashed'}"
>
<span class="absolute -top-3 bg-white font-bold {activeActivity === 'two' ? 'text-primary-500' : 'text-gray-500'}">{m.activityTwo()}</span>
class="relative p-4 space-y-4 rounded-md w-full flex flex-col items-center
{activeActivity === 'two'
? 'border-2 border-primary-500'
: 'border-2 border-gray-300 border-dashed'}"
>
<span
class="absolute -top-3 bg-white font-bold {activeActivity === 'two'
? 'text-primary-500'
: 'text-gray-500'}">{m.activityTwo()}</span
>
{#if Object.keys(data.relatedModels).length > 0}
<div class="card shadow-lg mt-8 bg-white w-full">
<TabGroup justify="justify-center">
Expand Down

0 comments on commit 4317670

Please sign in to comment.