Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowsink committed Feb 28, 2024
1 parent 15d870d commit 0fe8bf0
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 13 deletions.
4 changes: 3 additions & 1 deletion plugins/freemoji/slateTreeProcessor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const {
plugin: { store },
flux: { stores: { SelectedGuildStore, EmojiStore } },
flux: {
stores: { SelectedGuildStore, EmojiStore },
},
} = shelter;

const isInDms = () =>
Expand Down
5 changes: 4 additions & 1 deletion plugins/invidivizer/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
const {
plugin: { store },
observeDom,
flux: { dispatcher, storesFlat: { SelectedChannelStore } },
flux: {
dispatcher,
storesFlat: { SelectedChannelStore },
},
util: { reactFiberWalker, getFiber },
ui: { Header, HeaderTags, TextBox },
} = shelter;
Expand Down
5 changes: 4 additions & 1 deletion plugins/more-embeds/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
const {
flux: { storesFlat: { ThemeStore, SelectedChannelStore }, dispatcher },
flux: {
storesFlat: { ThemeStore, SelectedChannelStore },
dispatcher,
},
solid: { onCleanup },
util: { createSubscription, getFiber, reactFiberWalker },
observeDom,
Expand Down
5 changes: 3 additions & 2 deletions plugins/snazzy-shelter/src/components/badges.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const badge = (url, type) => () =>
<img src={url} class={`ysink_stain_badge ysink_stain_${type}`} />;
const badge = (url, type) => () => (
<img src={url} class={`ysink_stain_badge ysink_stain_${type}`} />
);

export const BDBadge = badge(
"https://betterdiscord.app/resources/branding/logo_small.svg",
Expand Down
17 changes: 9 additions & 8 deletions plugins/timezones/ui/UserMan.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { showPickerModal } from "./TzPicker";

const {
flux: { storesFlat: { UserStore } },
flux: {
storesFlat: { UserStore },
},
plugin: { store },
ui: {
Button,
Expand Down Expand Up @@ -34,12 +36,12 @@ export default (props) => {
!newUid()
? ""
: newUid() in store.savedTzs
? "This user already has a timezone set"
: newUid().match(/\d{17,19}/)?.[0] !== newUid()
? "That is not a valid user ID"
: !newTz()
? "Please enter a time zone"
: undefined;
? "This user already has a timezone set"
: newUid().match(/\d{17,19}/)?.[0] !== newUid()
? "That is not a valid user ID"
: !newTz()
? "Please enter a time zone"
: undefined;

const tryAdd = () => {
if (validation() !== undefined) return;
Expand Down Expand Up @@ -138,7 +140,6 @@ export default (props) => {
Add
</Button>
</div>

{!!validation() && (
<>
<span style="color: var(--text-danger)">{validation()}</span>
Expand Down

0 comments on commit 0fe8bf0

Please sign in to comment.