Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
chore(web): update eslint-config-reearth to 0.2.1 (#326)
Browse files Browse the repository at this point in the history
chore: updated eslint-config-reearth to 0.2.1
  • Loading branch information
nourbalaha committed Oct 5, 2022
1 parent 16e38c5 commit 25acdd9
Show file tree
Hide file tree
Showing 12 changed files with 202 additions and 198 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"del-cli": "4.0.1",
"dotenv": "16.0.1",
"eslint": "8.23.0",
"eslint-config-reearth": "0.1.1",
"eslint-config-reearth": "0.2.1",
"eslint-plugin-cypress": "2.12.1",
"eslint-plugin-graphql": "4.0.0",
"husky": "8.0.1",
Expand Down Expand Up @@ -155,4 +155,4 @@
"use-custom-compare": "1.2.0",
"use-file-input": "1.0.0"
}
}
}
3 changes: 2 additions & 1 deletion src/components/atoms/AutoComplete/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ function AutoComplete<Value extends string | number>({
{i.label}
</Option>
);
})}></SelectCore>
})}
/>
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/atoms/Resizable/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Container: React.FC<{ children?: ReactNode; style?: CSSProperties }> = ({
style,
}) => <div style={{ display: "flex", height: 400, ...style }}>{children}</div>;
const Pane = <div style={{ flex: 1, background: "#ffffff" }} />;
const Content = <div style={{ width: "100%", height: "100%", background: "#ffffff" }}></div>;
const Content = <div style={{ width: "100%", height: "100%", background: "#ffffff" }} />;

export default {
title: "atoms/Resizable",
Expand Down
3 changes: 2 additions & 1 deletion src/components/atoms/Select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ const Select = <Value extends string | number>(
value={selectedValue}
options={children}
fullWidth={fullWidth}
onChange={onChange}></SelectCore>
onChange={onChange}
/>
);
};

Expand Down
3 changes: 2 additions & 1 deletion src/components/molecules/EarthEditor/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ const Header: React.FC<Props> = ({
text={t("Preview")}
buttonType="secondary"
onClick={onPreviewOpen}
margin="0 12px 0 0"></PreviewButton>
margin="0 12px 0 0"
/>
<Dropdown
ref={dropDownRef}
openOnClick
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,17 @@ const FontFormatField: React.FC<Props> = ({
const inactive = !!linked || !!overridden || !!disabled;

return (
<>
<CheckGroup<FontFormatKey>
className={className}
values={selectedValues}
inactive={inactive}
onChange={onChange}>
{formatItems.map(({ key, icon }) => (
<Check key={key} value={key} linked={linked} overridden={overridden}>
<Icon icon={icon} size={16} />
</Check>
))}
</CheckGroup>
</>
<CheckGroup<FontFormatKey>
className={className}
values={selectedValues}
inactive={inactive}
onChange={onChange}>
{formatItems.map(({ key, icon }) => (
<Check key={key} value={key} linked={linked} overridden={overridden}>
<Icon icon={icon} size={16} />
</Check>
))}
</CheckGroup>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,54 +72,52 @@ const PluginSection: React.FC<Props> = ({
);

return (
<>
<TabSection<PluginTabs> selected="Marketplace" menuAlignment="top" headers={tabHeaders}>
{{
Marketplace: (
<Box pv="2xl">
{accessToken &&
extensions?.library?.map(ext => (
<ext.component
key={ext.id}
theme={currentTheme}
lang={currentLang}
installedPlugins={marketplacePlugins}
accessToken={accessToken}
onInstall={onInstallFromMarketplace}
onUninstall={onUninstall}
/>
))}
</Box>
),
Public: (
<Box>
{accessToken &&
extensions?.installed?.map(ext => (
<ext.component
key={ext.id}
installedPlugins={marketplacePlugins}
theme={currentTheme}
lang={currentLang}
accessToken={accessToken}
onInstall={onInstallFromMarketplace}
onUninstall={onUninstall}
/>
))}
</Box>
),
Personal: loading ? (
<Loading />
) : (
<PluginInstall
installedPlugins={personalPlugins}
installFromPublicRepo={onInstallFromPublicRepo}
installByUploadingZipFile={onInstallFromFile}
uninstallPlugin={onUninstall}
/>
),
}}
</TabSection>
</>
<TabSection<PluginTabs> selected="Marketplace" menuAlignment="top" headers={tabHeaders}>
{{
Marketplace: (
<Box pv="2xl">
{accessToken &&
extensions?.library?.map(ext => (
<ext.component
key={ext.id}
theme={currentTheme}
lang={currentLang}
installedPlugins={marketplacePlugins}
accessToken={accessToken}
onInstall={onInstallFromMarketplace}
onUninstall={onUninstall}
/>
))}
</Box>
),
Public: (
<Box>
{accessToken &&
extensions?.installed?.map(ext => (
<ext.component
key={ext.id}
installedPlugins={marketplacePlugins}
theme={currentTheme}
lang={currentLang}
accessToken={accessToken}
onInstall={onInstallFromMarketplace}
onUninstall={onUninstall}
/>
))}
</Box>
),
Personal: loading ? (
<Loading />
) : (
<PluginInstall
installedPlugins={personalPlugins}
installFromPublicRepo={onInstallFromPublicRepo}
installByUploadingZipFile={onInstallFromFile}
uninstallPlugin={onUninstall}
/>
),
}}
</TabSection>
);
};

Expand Down
Loading

0 comments on commit 25acdd9

Please sign in to comment.