Skip to content

Commit

Permalink
[core] Use prettier at 100% (mui#1936)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Jun 28, 2020
1 parent b62ce2a commit 8a75e67
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
5 changes: 1 addition & 4 deletions lib/src/DateRangePicker/date-range-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,5 @@ export function calculateRangePreview(options: CalculateRangeChangeOptions): Dat
}

const [previewStart, previewEnd] = newRange;
// prettier-ignore
return options.currentlySelectingRangeEnd === 'end'
? [end, previewEnd]
: [previewStart, start];
return options.currentlySelectingRangeEnd === 'end' ? [end, previewEnd] : [previewStart, start];
}
8 changes: 4 additions & 4 deletions lib/src/DateTimePicker/DateTimePickerTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ export interface DateTimePickerTabsProps {

export const useStyles = makeStyles(
theme => {
// prettier-ignore
const tabsBackground = theme.palette.type === 'light'
? theme.palette.primary.main
: theme.palette.background.default;
const tabsBackground =
theme.palette.type === 'light'
? theme.palette.primary.main
: theme.palette.background.default;

return {
container: {
Expand Down
9 changes: 4 additions & 5 deletions lib/src/views/Clock/ClockView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,11 @@ export const ClockView: React.FC<ClockViewProps> = withDefaultProps(
utils
);

// prettier-ignore
return Boolean(
(minTime && isAfterComparingFn(minTime, getRequestedTimePoint('end'))) ||
(maxTime && isAfterComparingFn(getRequestedTimePoint('start'), maxTime)) ||
(shouldDisableTime && shouldDisableTime(rawValue, type))
);
(minTime && isAfterComparingFn(minTime, getRequestedTimePoint('end'))) ||
(maxTime && isAfterComparingFn(getRequestedTimePoint('start'), maxTime)) ||
(shouldDisableTime && shouldDisableTime(rawValue, type))
);
};

switch (type) {
Expand Down

0 comments on commit 8a75e67

Please sign in to comment.