Skip to content

Commit 717d996

Browse files
committed
Cleanup
1 parent 1e2e01c commit 717d996

File tree

11 files changed

+10
-14
lines changed

11 files changed

+10
-14
lines changed

features/issues/api/use-get-issues.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useEffect } from "react";
22
import { useQuery, useQueryClient } from "@tanstack/react-query";
33
import { getIssues } from "@api/issues";
44
import type { Page } from "@typings/page.types";
5-
import type { Issue } from "@features/issues";
5+
import type { Issue } from "../types";
66

77
const QUERY_KEY = "issues";
88

features/issues/api/use-resolve-issue.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useMutation, useQueryClient } from "@tanstack/react-query";
22
import { useRef } from "react";
33
import { resolveIssue } from "@api/issues";
44
import * as GetIssues from "./use-get-issues";
5-
import type { Issue } from "@features/issues";
5+
import type { Issue } from "../types";
66

77
export function useResolveIssue(page: number) {
88
const queryClient = useQueryClient();

features/issues/components/issue-list/issue-row.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import styled from "styled-components";
22
import capitalize from "lodash/capitalize";
33
import { color, space, textFont } from "@styles/theme";
44
import { Badge, BadgeColor, BadgeSize } from "@features/ui";
5-
import { IssueLevel } from "../../types/issue.types";
65
import { ProjectLanguage } from "@features/projects";
7-
import type { Issue } from "../../types/issue.types";
6+
import { IssueLevel } from "../../types";
7+
import type { Issue } from "../../types";
88

99
type IssueRowProps = {
1010
projectLanguage: ProjectLanguage;

features/issues/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export * from "./api";
22
export * from "./components/issue-list";
3-
export * from "./types/issue.types";
3+
export * from "./types";
File renamed without changes.

features/projects/api/use-projects.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useQuery } from "@tanstack/react-query";
22
import { getProjects } from "@api/projects";
3-
import type { Project } from "@features/projects";
3+
import type { Project } from "../types";
44

55
export function useProjects() {
66
return useQuery<Project[], Error>(["projects"], getProjects);

features/projects/components/project-card/project-card.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import { ComponentStory, ComponentMeta } from "@storybook/react";
33
import { ProjectCard } from "./project-card";
4-
import { ProjectLanguage, ProjectStatus } from "@features/projects";
4+
import { ProjectLanguage, ProjectStatus } from "../../types";
55

66
export default {
77
title: "Project/ProjectCard",

features/projects/components/project-card/project-card.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@ import Link from "next/link";
22
import styled from "styled-components";
33
import capitalize from "lodash/capitalize";
44
import { Badge, BadgeColor } from "@features/ui";
5-
import {
6-
Project,
7-
ProjectLanguage,
8-
ProjectStatus,
9-
} from "../../types/project.types";
105
import { color, displayFont, space, textFont } from "@styles/theme";
116
import { Routes } from "@config/routes";
7+
import { Project, ProjectLanguage, ProjectStatus } from "../../types";
128

139
type ProjectCardProps = {
1410
project: Project;

features/projects/components/project-list/project-list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import styled from "styled-components";
2+
import { breakpoint, space } from "@styles/theme";
23
import { ProjectCard } from "../project-card";
34
import { useProjects } from "../../api/use-projects";
4-
import { breakpoint, space } from "@styles/theme";
55

66
const List = styled.ul`
77
display: grid;

features/projects/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export * from "./api";
22
export * from "./components/project-list";
3-
export * from "./types/project.types";
3+
export * from "./types";

0 commit comments

Comments
 (0)