From 2f24f03b502b9386fc19e0e155d07bfe258e1d4f Mon Sep 17 00:00:00 2001 From: Jareth MacArthur Date: Sun, 3 Sep 2023 15:12:45 +1000 Subject: [PATCH] fix(server): import error --- src/Zone/index.tsx | 11 +---------- src/Zone/types.ts | 9 +++++++++ src/Zone/utils.ts | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 src/Zone/types.ts diff --git a/src/Zone/index.tsx b/src/Zone/index.tsx index 75f2c09..623cd1f 100644 --- a/src/Zone/index.tsx +++ b/src/Zone/index.tsx @@ -1,15 +1,6 @@ import React from 'react'; import styled from 'styled-components/native'; - -export type ZoneType = { - x: number; - y: number; - width: number; - height: number; - devMode?: boolean; - onPress?: () => void; - id: string; -}; +import type { ZoneType } from './types'; const Container = styled.TouchableOpacity>` position: absolute; diff --git a/src/Zone/types.ts b/src/Zone/types.ts new file mode 100644 index 0000000..00a9d12 --- /dev/null +++ b/src/Zone/types.ts @@ -0,0 +1,9 @@ +export type ZoneType = { + x: number; + y: number; + width: number; + height: number; + devMode?: boolean; + onPress?: () => void; + id: string; +}; diff --git a/src/Zone/utils.ts b/src/Zone/utils.ts index 4c97983..c01d791 100644 --- a/src/Zone/utils.ts +++ b/src/Zone/utils.ts @@ -1,4 +1,4 @@ -import type { ZoneType } from './index'; +import type { ZoneType } from './types'; export function createGridZones({ gridSize,