Skip to content

Commit

Permalink
fix(all): lints
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Dec 2, 2023
1 parent 3a4ae1b commit 354b2d8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 18 deletions.
22 changes: 11 additions & 11 deletions plugins/auto-mute-guilds/settings.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { Dropdown } from "../../components/Dropdown";
import { css, classes } from "./settings.scss";
import { Dropdown } from '../../components/Dropdown'
import { css, classes } from './settings.scss'

const {
plugin: { store },
ui: { SwitchItem, Header, injectCss },
} = shelter;
} = shelter

let injectedCss = false;
let injectedCss = false

export default () => {
if (!injectedCss) {
injectedCss = true;
injectCss(css);
injectedCss = true
injectCss(css)
}

return (
Expand All @@ -22,15 +22,15 @@ export default () => {
onChange={(e) => (store.notifications = e.target.value)}
options={[
{
label: "All messages",
label: 'All messages',
value: 0,
},
{
label: "Only @mentions",
label: 'Only @mentions',
value: 1,
},
{
label: "Nothing",
label: 'Nothing',
value: 2,
},
]}
Expand Down Expand Up @@ -69,5 +69,5 @@ export default () => {
Mute mobile notifications
</SwitchItem>
</>
);
};
)
}
2 changes: 1 addition & 1 deletion plugins/inline-css/components/Close.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ export const Close = () => (
/>
</g>
</svg>
);
)
2 changes: 1 addition & 1 deletion plugins/inline-css/components/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const saveCss = debounce((css: string, styleElm: HTMLStyleElement) => {
let injectedCss = false

export default function (props: Props) {
let ref = null
const ref = null

if (!injectedCss) {
injectCss(css)
Expand Down
4 changes: 0 additions & 4 deletions plugins/inline-css/components/Window.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { debounce } from '../util'

const {
ui: { injectCss },
solid: { createSignal },
} = shelter

let injectedCss = false
Expand All @@ -19,15 +18,12 @@ export const Window = () => {
injectedCss = true
}

const [dragging, setDragging] = createSignal(false)

const close = () => {
if (ref) ref.remove()
}

const handleMouseDown = (evt) => {
evt.preventDefault()
setDragging(true)
mousedown(evt)
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/shelteRPC/components/RegisteredGames.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import GameCard from './GameCard'
import { Dropdown } from "../../../components/Dropdown"
import { Dropdown } from '../../../components/Dropdown'

import { css, classes } from './RegisteredGames.scss'

Expand Down

0 comments on commit 354b2d8

Please sign in to comment.