Skip to content

Commit

Permalink
remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed May 19, 2021
1 parent a4ef31b commit ae3eb05
Showing 1 changed file with 1 addition and 46 deletions.
47 changes: 1 addition & 46 deletions packages/material-ui-lab/src/CalendarPicker/PickersCalendar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import Typography from '@material-ui/core/Typography';
import { StyleRules, Theme, experimentalStyled as styled } from '@material-ui/core/styles';
import { experimentalStyled as styled } from '@material-ui/core/styles';
import PickersDay, { PickersDayProps } from '../PickersDay/PickersDay';
import { useUtils, useNow } from '../internal/pickers/hooks/useUtils';
import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
Expand Down Expand Up @@ -59,51 +59,6 @@ export interface PickersCalendarProps<TDate> extends ExportedCalendarProps<TDate

const weeksContainerHeight = (DAY_SIZE + DAY_MARGIN * 4) * 6;

// TODO remove PickersCalendarClassKey in CalendarPickerSkeleton migration
export type PickersCalendarClassKey =
| 'root'
| 'loadingContainer'
| 'weekContainer'
| 'week'
| 'daysHeader'
| 'weekDayLabel';

// TODO remove styles in CalendarPickerSkeleton migration
export const styles = (theme: Theme): StyleRules<PickersCalendarClassKey> => ({
root: {
minHeight: weeksContainerHeight,
},
loadingContainer: {
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
minHeight: weeksContainerHeight,
},
weekContainer: {
overflow: 'hidden',
},
week: {
margin: `${DAY_MARGIN}px 0`,
display: 'flex',
justifyContent: 'center',
},
daysHeader: {
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
},
weekDayLabel: {
width: 36,
height: 40,
margin: '0 2px',
textAlign: 'center',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
color: theme.palette.text.secondary,
},
});

const PickersCalendarDayHeader = styled(
'div',
{},
Expand Down

0 comments on commit ae3eb05

Please sign in to comment.