Skip to content

Commit

Permalink
fix(server): import error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jtmaca9 committed Sep 3, 2023
1 parent 4182158 commit 2f24f03
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
11 changes: 1 addition & 10 deletions src/Zone/index.tsx
Original file line number Diff line number Diff line change
@@ -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<Partial<ZoneType>>`
position: absolute;
Expand Down
9 changes: 9 additions & 0 deletions src/Zone/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export type ZoneType = {
x: number;
y: number;
width: number;
height: number;
devMode?: boolean;
onPress?: () => void;
id: string;
};
2 changes: 1 addition & 1 deletion src/Zone/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ZoneType } from './index';
import type { ZoneType } from './types';

export function createGridZones({
gridSize,
Expand Down

0 comments on commit 2f24f03

Please sign in to comment.