{loading &&
rows.length === 0 &&
- [...new Array(25)].map((e, i) => {
- return {renderCard({ loading })}
;
- })}
+ [...new Array(25)].map((e, i) => (
+ {renderCard({ loading })}
+ ))}
{rows.length > 0 &&
rows.map(row => {
if (!renderCard) return null;
diff --git a/superset-frontend/src/components/ListView/ListView.tsx b/superset-frontend/src/components/ListView/ListView.tsx
index 3f664f1f2..6ee998cc3 100644
--- a/superset-frontend/src/components/ListView/ListView.tsx
+++ b/superset-frontend/src/components/ListView/ListView.tsx
@@ -174,34 +174,32 @@ const ViewModeToggle = ({
}: {
mode: 'table' | 'card';
setMode: (mode: 'table' | 'card') => void;
-}) => {
- return (
-
- {
- e.currentTarget.blur();
- setMode('card');
- }}
- className={cx('toggle-button', { active: mode === 'card' })}
- >
-
-
- {
- e.currentTarget.blur();
- setMode('table');
- }}
- className={cx('toggle-button', { active: mode === 'table' })}
- >
-
-
-
- );
-};
+}) => (
+
+ {
+ e.currentTarget.blur();
+ setMode('card');
+ }}
+ className={cx('toggle-button', { active: mode === 'card' })}
+ >
+
+
+ {
+ e.currentTarget.blur();
+ setMode('table');
+ }}
+ className={cx('toggle-button', { active: mode === 'table' })}
+ >
+
+
+
+);
export interface ListViewProps {
columns: any[];
diff --git a/superset-frontend/src/components/ListViewCard/ListViewCard.stories.tsx b/superset-frontend/src/components/ListViewCard/ListViewCard.stories.tsx
index 6daf43d5f..5f716c01f 100644
--- a/superset-frontend/src/components/ListViewCard/ListViewCard.stories.tsx
+++ b/superset-frontend/src/components/ListViewCard/ListViewCard.stories.tsx
@@ -41,49 +41,43 @@ const imgFallbackKnob = {
defaultValue: DashboardImg,
};
-export const SupersetListViewCard = () => {
- return (
-
-
-
-
- Delete
-
-
- Edit
-
-
- }
- >
-
-
-
- }
- />
- );
-};
+export const SupersetListViewCard = () => (
+
+
+
+
+ Delete
+
+
+ Edit
+
+
+ }
+ >
+
+
+
+ }
+ />
+);
diff --git a/superset-frontend/src/components/Select/Select.stories.tsx b/superset-frontend/src/components/Select/Select.stories.tsx
index 74ae743a7..dc1042034 100644
--- a/superset-frontend/src/components/Select/Select.stories.tsx
+++ b/superset-frontend/src/components/Select/Select.stories.tsx
@@ -49,45 +49,43 @@ export default {
},
};
-export const SelectGallery = ({ value }: { value: OptionTypeBase }) => {
- return (
- <>
- With default value
-