Skip to content

Commit

Permalink
6
Browse files Browse the repository at this point in the history
  • Loading branch information
Soltus committed Mar 24, 2024
1 parent 56cbcfc commit 176f8a9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
12 changes: 6 additions & 6 deletions docs/starlight/src/components/StatusComponent.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ import { Icon } from '@astrojs/starlight/components';
</div>

<script>
const closeIcon = document.querySelector('.close-icon');

closeIcon.addEventListener('click', function(event) {
notificationContainer.style.display = 'none';
event.stopPropagation(); // Prevent triggering the container's click event
});
const closeIcon = document.querySelector('.close-icon');
closeIcon?.addEventListener('click', function(event) {
const notificationContainer = document.querySelector('#notificationContainer') as HTMLDivElement;
notificationContainer.style.display = 'none';
event.stopPropagation(); // Prevent triggering the container's click event
});

</script>
11 changes: 9 additions & 2 deletions docs/starlight/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"extends": "astro/tsconfigs/strict"
}
"extends": "astro/tsconfigs/strict",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@components/*": ["src/components/*"],
"@assets/*": ["src/assets/*"]
}
}
}

0 comments on commit 176f8a9

Please sign in to comment.