Skip to content

Commit

Permalink
update: organize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
m2rads committed Oct 17, 2024
1 parent df46062 commit f9cf53e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
3 changes: 1 addition & 2 deletions app/(dashboard)/dashboard/log-view.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
'use client'

import { useRef, useMemo } from 'react'
import { useRef, useMemo, useState } from 'react'
import { Loader2, ChevronRight, ChevronDown } from 'lucide-react'
import { getWorkflowLogs } from '@/lib/github'
import useSWR from 'swr'
import { useState } from 'react'

interface LogViewProps {
owner: string;
Expand Down
24 changes: 12 additions & 12 deletions app/(dashboard)/dashboard/pull-request.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
"use client";

import { useCallback, useState } from "react";
import { Button } from "@/components/ui/button";
import { useState } from "react";
import { experimental_useObject as useObject } from "ai/react";
import Link from "next/link";
import dynamic from "next/dynamic";
import { cn } from "@/lib/utils";
import useSWR from "swr";
import { TestFileSchema } from "@/app/api/generate-tests/schema";
import {
GitPullRequestDraft,
GitPullRequest,
Expand All @@ -14,24 +19,19 @@ import {
ChevronDown,
ChevronUp,
} from "lucide-react";
import Link from "next/link";
import { Button } from "@/components/ui/button";
import { Checkbox } from "@/components/ui/checkbox";
import dynamic from "next/dynamic";
import { PullRequest, TestFile } from "./types";
import { Input } from "@/components/ui/input";
import { useToast } from "@/hooks/use-toast";
import {
commitChangesToPullRequest,
getPullRequestInfo,
getFailingTests,
getLatestRunId,
fetchBuildStatus
} from "@/lib/github";
import { Input } from "@/components/ui/input";
import useSWR from "swr";
import { fetchBuildStatus } from "@/lib/github";
import { experimental_useObject as useObject } from "ai/react";
import { TestFileSchema } from "@/app/api/generate-tests/schema";
import { LogView } from "./log-view";
import { getLatestRunId } from "@/lib/github";
import { cn } from "@/lib/utils";
import { PullRequest, TestFile } from "./types";

const ReactDiffViewer = dynamic(() => import("react-diff-viewer"), {
ssr: false,
Expand Down

0 comments on commit f9cf53e

Please sign in to comment.