Skip to content

Commit 436d5c0

Browse files
committed
Fixed require cycle warning
1 parent 99c8e3e commit 436d5c0

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

src/Time/AnalogClock.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
} from 'react-native'
88
import { useTheme } from 'react-native-paper'
99
import {
10+
circleSize,
1011
clockTypes,
1112
getAngle,
1213
getHours,
@@ -24,9 +25,6 @@ import AnalogClockHours from './AnalogClockHours'
2425
import AnimatedClockSwitcher from './AnimatedClockSwitcher'
2526
import AnalogClockMinutes from './AnalogClockMinutes'
2627

27-
// 250? when bigger?
28-
export const circleSize = 215
29-
3028
function AnalogClock({
3129
hours,
3230
minutes,

src/Time/AnalogClockHours.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react'
22
import { View, StyleSheet } from 'react-native'
33
import { Text } from 'react-native-paper'
4-
import { circleSize } from './AnalogClock'
4+
import { circleSize } from './timeUtils'
55
import { useTextColorOnPrimary } from '../utils'
66

77
function AnalogClockHours({

src/Time/AnalogClockMinutes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react'
22
import { View, StyleSheet } from 'react-native'
33
import { Text } from 'react-native-paper'
4-
import { circleSize } from './AnalogClock'
4+
import { circleSize } from './timeUtils'
55
import { useTextColorOnPrimary } from '../utils'
66

77
function AnalogClockMinutes({ minutes }: { minutes: number }) {

src/Time/TimePicker.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import {
99
toHourOutputFormat,
1010
} from './timeUtils'
1111

12-
import AnalogClock, { circleSize } from './AnalogClock'
12+
import AnalogClock from './AnalogClock'
13+
import { circleSize } from './timeUtils'
1314
import TimeInputs from './TimeInputs'
1415

1516
type onChangeFunc = ({

src/Time/timeUtils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import * as React from 'react'
22
import Color from 'color'
33
import { useTheme } from 'react-native-paper'
44

5+
// 250? when bigger?
6+
export const circleSize = 215
7+
58
export type PossibleHourTypes = 'am' | 'pm'
69
export type HourTypeMap = {
710
[hourType in PossibleHourTypes]: PossibleHourTypes

0 commit comments

Comments
 (0)