From a9afd7e0a9e0c25f3074e3737a9670199b85e795 Mon Sep 17 00:00:00 2001 From: Loewy Date: Thu, 11 Jan 2024 22:59:15 -0800 Subject: [PATCH 1/2] add charts folder in component --- component/{ => charts}/bar.tsx | 0 component/{ => charts}/custom-bar-utils.ts | 0 component/{ => charts}/custom-bars.tsx | 0 component/{ => charts}/custom-grid.tsx | 2 +- component/{ => charts}/graph-types.ts | 0 5 files changed, 1 insertion(+), 1 deletion(-) rename component/{ => charts}/bar.tsx (100%) rename component/{ => charts}/custom-bar-utils.ts (100%) rename component/{ => charts}/custom-bars.tsx (100%) rename component/{ => charts}/custom-grid.tsx (96%) rename component/{ => charts}/graph-types.ts (100%) diff --git a/component/bar.tsx b/component/charts/bar.tsx similarity index 100% rename from component/bar.tsx rename to component/charts/bar.tsx diff --git a/component/custom-bar-utils.ts b/component/charts/custom-bar-utils.ts similarity index 100% rename from component/custom-bar-utils.ts rename to component/charts/custom-bar-utils.ts diff --git a/component/custom-bars.tsx b/component/charts/custom-bars.tsx similarity index 100% rename from component/custom-bars.tsx rename to component/charts/custom-bars.tsx diff --git a/component/custom-grid.tsx b/component/charts/custom-grid.tsx similarity index 96% rename from component/custom-grid.tsx rename to component/charts/custom-grid.tsx index dfb6fb8..a830118 100644 --- a/component/custom-grid.tsx +++ b/component/charts/custom-grid.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { G, Line } from 'react-native-svg'; -import { colors } from '../styles'; +import { colors } from '../../styles'; import { ScaleFunction } from './graph-types'; interface CustomGridProps { diff --git a/component/graph-types.ts b/component/charts/graph-types.ts similarity index 100% rename from component/graph-types.ts rename to component/charts/graph-types.ts From 8d40008e5d29bd388a7d49e8e438419172165450 Mon Sep 17 00:00:00 2001 From: Loewy Date: Thu, 11 Jan 2024 23:01:05 -0800 Subject: [PATCH 2/2] add path --- test/component/custom-bars.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/component/custom-bars.test.tsx b/test/component/custom-bars.test.tsx index fe62815..abd3850 100644 --- a/test/component/custom-bars.test.tsx +++ b/test/component/custom-bars.test.tsx @@ -3,8 +3,8 @@ import { render } from '@testing-library/react-native'; import "@testing-library/jest-native/extend-expect"; import * as scale from 'd3-scale' -import { CustomBars } from '../../component/custom-bars'; -import { calculateBarOrigin, drawBarPath } from '../../component/custom-bar-utils'; +import { CustomBars } from '../../component/charts/custom-bars'; +import { calculateBarOrigin, drawBarPath } from '../../component/charts/custom-bar-utils'; const mockYScaleFunction = scale.scaleLinear();