Skip to content

Commit

Permalink
Refactor file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Jul 16, 2024
1 parent 6f481f3 commit 44029cc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ import { ControlsProvider } from "./screens/VisualTests/ControlsContext";
import { RunBuildProvider } from "./screens/VisualTests/RunBuildContext";
import { VisualTests } from "./screens/VisualTests/VisualTests";
import { GitInfoPayload, LocalBuildProgress, UpdateStatusFunction } from "./types";
import { useChannelFetch } from "./utils/ChannelFetch/useChannelFetch";
import { createClient, GraphQLClientProvider, useAccessToken } from "./utils/graphQLClient";
import { TelemetryProvider } from "./utils/TelemetryContext";
import { useBuildEvents } from "./utils/useBuildEvents";
import { useChannelFetch } from "./utils/useChannelFetch";
import { useProjectId } from "./utils/useProjectId";
import { clearSessionState, useSessionState } from "./utils/useSessionState";
import { useSharedState } from "./utils/useSharedState";
Expand Down
3 changes: 3 additions & 0 deletions src/utils/ChannelFetch/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const FETCH_ABORTED = "ChannelFetch/aborted";
export const FETCH_REQUEST = "ChannelFetch/request";
export const FETCH_RESPONSE = "ChannelFetch/response";
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import type { Channel } from "@storybook/channels";

export const FETCH_ABORTED = "ChannelFetch/aborted";
export const FETCH_REQUEST = "ChannelFetch/request";
export const FETCH_RESPONSE = "ChannelFetch/response";
import { FETCH_ABORTED, FETCH_REQUEST, FETCH_RESPONSE } from "./constants";

type ChannelLike = Pick<Channel, "emit" | "on" | "off">;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { useChannel } from "@storybook/manager-api";

const FETCH_ABORTED = "ChannelFetch/aborted";
const FETCH_REQUEST = "ChannelFetch/request";
const FETCH_RESPONSE = "ChannelFetch/response";
import { FETCH_ABORTED, FETCH_REQUEST, FETCH_RESPONSE } from "./constants";

type SerializedResponse = {
status: number;
Expand Down

0 comments on commit 44029cc

Please sign in to comment.