Skip to content

Commit

Permalink
refactor: do not use "baseUrl" setting, as there is no path mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
acro5piano committed Jun 9, 2023
1 parent 99294d1 commit 03deb88
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/Calendar.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import dayjs from 'dayjs'
import isBetween from 'dayjs/plugin/isBetween'
import React from 'react'
import { deepMerge } from 'src/utils/object'

import { ICalendarEventBase } from '../interfaces'
import { defaultTheme } from '../theme/defaultTheme'
import { ThemeContext } from '../theme/ThemeContext'
import { ThemeInterface } from '../theme/ThemeInterface'
import { deepMerge } from '../utils/object'
import { typedMemo } from '../utils/react'
import { DeepPartial } from '../utils/utility-types'
import { CalendarContainer, CalendarContainerProps } from './CalendarContainer'
Expand Down
2 changes: 1 addition & 1 deletion src/components/CalendarBody.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import dayjs from 'dayjs'
import * as React from 'react'
import { Platform, ScrollView, StyleSheet, TextStyle, View, ViewStyle } from 'react-native'
import { typedMemo } from 'src/utils/react'

import { u } from '../commonStyles'
import { useNow } from '../hooks/useNow'
Expand All @@ -21,6 +20,7 @@ import {
hours,
isToday,
} from '../utils/datetime'
import { typedMemo } from '../utils/react'
import { CalendarEvent } from './CalendarEvent'
import { HourGuideCell } from './HourGuideCell'
import { HourGuideColumn } from './HourGuideColumn'
Expand Down
2 changes: 1 addition & 1 deletion src/components/CalendarContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import dayjs from 'dayjs'
import React from 'react'
import { TextStyle, ViewStyle } from 'react-native'
import { typedMemo } from 'src/utils/react'

import { MIN_HEIGHT } from '../commonStyles'
import {
Expand All @@ -27,6 +26,7 @@ import {
isAllDayEvent,
modeToNum,
} from '../utils/datetime'
import { typedMemo } from '../utils/react'
import { CalendarBody } from './CalendarBody'
import { CalendarBodyForMonthView } from './CalendarBodyForMonthView'
import { CalendarHeader } from './CalendarHeader'
Expand Down
2 changes: 1 addition & 1 deletion src/components/CalendarEvent.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import dayjs from 'dayjs'
import * as React from 'react'
import { typedMemo } from 'src/utils/react'

import { OVERLAP_OFFSET, u } from '../commonStyles'
import { useCalendarTouchableOpacityProps } from '../hooks/useCalendarTouchableOpacityProps'
import { EventCellStyle, EventRenderer, ICalendarEventBase } from '../interfaces'
import { useTheme } from '../theme/ThemeContext'
import { DAY_MINUTES, getRelativeTopInDay, getStyleForOverlappingEvent } from '../utils/datetime'
import { typedMemo } from '../utils/react'
import { DefaultCalendarEventRenderer } from './DefaultCalendarEventRenderer'

const getEventCellPositionStyle = (start: Date, end: Date) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/CalendarEventForMonthView.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import dayjs from 'dayjs'
import * as React from 'react'
import { Text, TouchableOpacity, View } from 'react-native'
import { typedMemo } from 'src/utils/react'

import { u } from '../commonStyles'
import { useCalendarTouchableOpacityProps } from '../hooks/useCalendarTouchableOpacityProps'
import { EventCellStyle, EventRenderer, ICalendarEventBase } from '../interfaces'
import { useTheme } from '../theme/ThemeContext'
import { getEventSpanningInfo } from '../utils/datetime'
import { typedMemo } from '../utils/react'

interface CalendarEventProps<T extends ICalendarEventBase> {
event: T
Expand Down
2 changes: 1 addition & 1 deletion src/components/CalendarHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import dayjs from 'dayjs'
import * as React from 'react'
import { Platform, Text, TouchableOpacity, View, ViewStyle } from 'react-native'
import { typedMemo } from 'src/utils/react'

import { eventCellCss, u } from '../commonStyles'
import { ICalendarEventBase } from '../interfaces'
import { useTheme } from '../theme/ThemeContext'
import { isToday } from '../utils/datetime'
import { objHasContent, stringHasContent } from '../utils/object'
import { typedMemo } from '../utils/react'

export interface CalendarHeaderProps<T extends ICalendarEventBase> {
dateRange: dayjs.Dayjs[]
Expand Down
2 changes: 1 addition & 1 deletion src/components/CalendarHeaderForMonthView.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import dayjs from 'dayjs'
import * as React from 'react'
import { Text, View, ViewStyle } from 'react-native'
import { typedMemo } from 'src/utils/react'

import { u } from '../commonStyles'
import { WeekNum } from '../interfaces'
import { useTheme } from '../theme/ThemeContext'
import { getDatesInWeek } from '../utils/datetime'
import { typedMemo } from '../utils/react'

export interface CalendarHeaderForMonthViewProps {
weekStartsOn: WeekNum
Expand Down
2 changes: 1 addition & 1 deletion src/components/HourGuideCell.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import dayjs from 'dayjs'
import * as React from 'react'
import { TouchableWithoutFeedback, View } from 'react-native'
import { CalendarCellStyle } from 'src'

import { u } from '../commonStyles'
import { CalendarCellStyle } from '../interfaces'
import { useTheme } from '../theme/ThemeContext'

interface HourGuideCellProps {
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"esModuleInterop": true,
"moduleResolution": "node",
"module": "esnext",
"baseUrl": "./",
"outDir": "build"
},
"exclude": [
Expand Down

0 comments on commit 03deb88

Please sign in to comment.