Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xyzeva committed Dec 8, 2023
1 parent 8d85138 commit d61cbd0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
16 changes: 9 additions & 7 deletions packages/core-extensions/src/moonbase/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ export const webpackModules: ExtensionWebExports["webpackModules"] = {
const { MoonbaseSettingsStore } =
require("moonbase_stores") as typeof import("./webpackModules/stores");

const addSection = (name: string, element: React.FunctionComponent<{}>) => {
const addSection = (

Check failure on line 37 in packages/core-extensions/src/moonbase/index.tsx

View workflow job for this annotation

GitHub Actions / Lint commits

Replace `⏎········name:·string,⏎········element:·React.FunctionComponent⏎······` with `name:·string,·element:·React.FunctionComponent`

Check failure on line 37 in packages/core-extensions/src/moonbase/index.tsx

View workflow job for this annotation

GitHub Actions / Lint commits

Replace `⏎········name:·string,⏎········element:·React.FunctionComponent⏎······` with `name:·string,·element:·React.FunctionComponent`
name: string,
element: React.FunctionComponent
) => {
settings.addSection(name, name, element, null, -2, {
stores: [MoonbaseSettingsStore],
element: () => {
Expand All @@ -53,12 +56,11 @@ export const webpackModules: ExtensionWebExports["webpackModules"] = {
/>
);
}
})
}
settings.addHeader("moonlight", -2)
});
};
settings.addHeader("moonlight", -2);
addSection("Extensions", extensionsPage(require));
addSection("Config", configPage(require))
},

addSection("Config", configPage(require));
}
}
};
11 changes: 7 additions & 4 deletions packages/core-extensions/src/moonbase/ui/config/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ export default (require: WebpackRequireType) => {
}) {
const items = MoonbaseSettingsStore.getConfigOption(config) ?? [];
return (
<Flex style={{
"gap": "20px"
}} direction={Flex.Direction.VERTICAL}>
<Flex
style={{
gap: "20px"
}}
direction={Flex.Direction.VERTICAL}
>
{items.map((val, i) => (
<div
key={i}
Expand Down Expand Up @@ -91,7 +94,7 @@ export default (require: WebpackRequireType) => {
color={Button.Colors.GREEN}
size={Button.Sizes.SMALL}
style={{
"marginTop": "10px"
marginTop: "10px"
}}
onClick={() => {
items.push("");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export default (require: WebpackRequireType) => {
.exports.default;
const { Text } = require("common_components");


return function ExtensionsPage() {
const { extensions } = Flux.useStateFromStoresObject(
[MoonbaseSettingsStore],
Expand Down

0 comments on commit d61cbd0

Please sign in to comment.