Skip to content

Commit 557e3a8

Browse files
Rafactor - prettify changes
1 parent 99d828f commit 557e3a8

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

cypress/cypress.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,5 @@
88
"videosFolder": "videos",
99
"viewportWidth": 1280,
1010
"viewportHeight": 720,
11-
"blockHosts": [
12-
"source.unsplash.com"
13-
]
14-
}
11+
"blockHosts": ["source.unsplash.com"]
12+
}

cypress/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
"cypress": "^5.1.0",
1212
"cypress-skip-and-only-ui": "^1.2.7"
1313
}
14-
}
14+
}

packages/ra-ui-materialui/src/list/SimpleList.tsx

+8-4
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ const SimpleList: FC<SimpleListProps> = props => {
106106
>
107107
<ListItem
108108
button={!!linkType as any}
109-
style={rowStyle ? rowStyle(data[id], rowIndex) : null}
109+
style={
110+
rowStyle
111+
? rowStyle(data[id], rowIndex)
112+
: undefined
113+
}
110114
>
111115
{leftIcon && (
112116
<ListItemIcon>
@@ -190,7 +194,7 @@ export interface SimpleListProps extends Omit<ListProps, 'classes'> {
190194
rightIcon?: FunctionToElement;
191195
secondaryText?: FunctionToElement;
192196
tertiaryText?: FunctionToElement;
193-
rowStyle?: (record: Record, index: number) => any;
197+
rowStyle?: (record: Record, index: number) => any;
194198
}
195199

196200
const useLinkOrNotStyles = makeStyles(
@@ -227,8 +231,8 @@ const LinkOrNot: FC<LinkOrNotProps> = ({
227231
{children}
228232
</Link>
229233
) : (
230-
<span>{children}</span>
231-
);
234+
<span>{children}</span>
235+
);
232236
};
233237

234238
export type FunctionLinkType = (record: Record, id: Identifier) => string;

0 commit comments

Comments
 (0)