mirror of
https://github.com/SrIzan10/osu-radio.git
synced 2026-05-01 10:55:12 +00:00
style: formatting
This commit is contained in:
6
.idea/jsLibraryMappings.xml
generated
Normal file
6
.idea/jsLibraryMappings.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptLibraryMappings">
|
||||
<includedPredefinedLibrary name="Node.js Core" />
|
||||
</component>
|
||||
</project>
|
||||
6
.idea/prettier.xml
generated
Normal file
6
.idea/prettier.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="PrettierConfiguration">
|
||||
<option name="myConfigurationMode" value="AUTOMATIC" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -23,8 +23,8 @@ import {
|
||||
onCleanup,
|
||||
Setter,
|
||||
Show,
|
||||
Switch
|
||||
} from 'solid-js';
|
||||
Switch,
|
||||
} from "solid-js";
|
||||
|
||||
const MainScene: Component = () => {
|
||||
return (
|
||||
@@ -147,7 +147,7 @@ const TabContent: Component = () => {
|
||||
|
||||
const QueueModal: Component = () => {
|
||||
let queueModal: HTMLDivElement | undefined;
|
||||
const [clickedOutside, setClickedOutside] = createSignal(false);
|
||||
const [, setClickedOutside] = createSignal(false);
|
||||
|
||||
const handleOutsideClick = (event: MouseEvent) => {
|
||||
if (queueModal && !queueModal.contains(event.target as Node)) {
|
||||
@@ -159,13 +159,13 @@ const QueueModal: Component = () => {
|
||||
createEffect(() => {
|
||||
if (songQueueModalOpen()) {
|
||||
setClickedOutside(false);
|
||||
document.addEventListener('mousedown', handleOutsideClick);
|
||||
document.addEventListener("mousedown", handleOutsideClick);
|
||||
} else {
|
||||
document.removeEventListener('mousedown', handleOutsideClick);
|
||||
document.removeEventListener("mousedown", handleOutsideClick);
|
||||
}
|
||||
|
||||
onCleanup(() => {
|
||||
document.removeEventListener('mousedown', handleOutsideClick);
|
||||
document.removeEventListener("mousedown", handleOutsideClick);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user