Skip to content

Commit 760b7b2

Browse files
committed
Fix formatting
1 parent e430a44 commit 760b7b2

6 files changed

Lines changed: 27 additions & 16 deletions

File tree

packages/ra-ui-materialui/src/input/DateInput.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ export const DateInput = (props: DateInputProps) => {
190190

191191
const mergedSlotProps = {
192192
...rest.slotProps,
193-
inputLabel: { ...defaultInputLabelProps, ...rest.slotProps?.inputLabel },
193+
inputLabel: {
194+
...defaultInputLabelProps,
195+
...rest.slotProps?.inputLabel,
196+
},
194197
};
195198

196199
return (

packages/ra-ui-materialui/src/input/DateTimeInput.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@ export const DateTimeInput = (props: DateTimeInputProps) => {
149149

150150
const mergedSlotProps = {
151151
...rest.slotProps,
152-
inputLabel: { ...defaultInputLabelProps, ...rest.slotProps?.inputLabel },
152+
inputLabel: {
153+
...defaultInputLabelProps,
154+
...rest.slotProps?.inputLabel,
155+
},
153156
};
154157

155158
return (

packages/ra-ui-materialui/src/input/TimeInput.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ export const TimeInput = (props: TimeInputProps) => {
9191

9292
const mergedSlotProps = {
9393
...rest.slotProps,
94-
inputLabel: { ...defaultInputLabelProps, ...rest.slotProps?.inputLabel },
94+
inputLabel: {
95+
...defaultInputLabelProps,
96+
...rest.slotProps?.inputLabel,
97+
},
9598
};
9699

97100
return (

packages/ra-ui-materialui/src/layout/Notification.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,9 @@ export const Notification = (inProps: NotificationProps) => {
135135

136136
const transitionProps = { onExited: handleExited };
137137
const contentProps = {
138-
className: clsx(
139-
NotificationClasses[typeFromMessage || type],
140-
{
141-
[NotificationClasses.multiLine]:
142-
multilineFromMessage || multiLine,
143-
}
144-
),
138+
className: clsx(NotificationClasses[typeFromMessage || type], {
139+
[NotificationClasses.multiLine]: multilineFromMessage || multiLine,
140+
}),
145141
};
146142

147143
const mergedSlotProps = {

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ export const Empty = (inProps: EmptyProps) => {
3939
<Root className={className}>
4040
<div className={EmptyClasses.message}>
4141
<Inbox className={EmptyClasses.icon} />
42-
<Typography variant="h4" sx={{
43-
marginBottom: "16px"
44-
}}>
42+
<Typography
43+
variant="h4"
44+
sx={{
45+
marginBottom: '16px',
46+
}}
47+
>
4548
{translate(`resources.${resource}.empty`, {
4649
_: emptyMessage,
4750
})}

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,12 @@ const ListGuesserEmpty = (inProps: ListGuesserEmptyProps) => {
169169
<ListGuesserEmptyRoot className={className}>
170170
<Box className={ListGuesserEmptyClasses.message}>
171171
<Inbox className={ListGuesserEmptyClasses.icon} />
172-
<Typography variant="h4" sx={{
173-
marginBottom: "16px"
174-
}}>
172+
<Typography
173+
variant="h4"
174+
sx={{
175+
marginBottom: '16px',
176+
}}
177+
>
175178
{translate('ra.guesser.empty.title', {
176179
_: 'No data to display',
177180
})}

0 commit comments

Comments
 (0)