Skip to content

Commit

Permalink
move use-design under hooks from query-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
softmarshmallow committed Nov 2, 2021
1 parent 323f2db commit 054defa
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions editor/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from "./use-design";
export * from "./use-async-effect";
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { configure_auth_credentials } from "@design-sdk/figma-remote";
import { TargetNodeConfig } from "../query/target-node";
import { FigmaRemoteErrors } from "@design-sdk/figma-remote/lib/fetch";
import { RemoteDesignSessionCacheStore } from "../store";
import { convert } from "../../packages/design-sdk/figma-node-conversion";
import { mapFigmaRemoteToFigma } from "../../packages/design-sdk/figma-remote/lib/mapper";
import { convert } from "@design-sdk/figma-node-conversion";
import { mapFigmaRemoteToFigma } from "@design-sdk/figma-remote/lib/mapper";

// globally configure auth credentials for interacting with `@design-sdk/figma-remote`
configure_auth_credentials({
Expand Down
2 changes: 1 addition & 1 deletion editor/pages/figma/inspect-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
WorkspaceContentPanelGridLayout,
} from "../../layout/panel";
import { WorkspaceBottomPanelDockLayout } from "../../layout/panel/workspace-bottom-panel-dock-layout";
import { useDesign } from "../../query-hooks";
import { useDesign } from "../../hooks";
import { make_instance_component_meta } from "@code-features/component";

export default function InspectComponent() {
Expand Down
2 changes: 1 addition & 1 deletion editor/pages/figma/inspect-frame.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import { MonacoEditor } from "../../components/code-editor";
import { SceneNode } from "@design-sdk/figma-types";
import { useDesign } from "../../query-hooks";
import { useDesign } from "../../hooks";
import LoadingLayout from "../../layout/loading-overlay";

/**
Expand Down
2 changes: 1 addition & 1 deletion editor/pages/figma/inspect-raw.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { MonacoEditor } from "../../components/code-editor";
import { useDesign } from "../../query-hooks";
import { useDesign } from "../../hooks";
import LoadingLayout from "../../layout/loading-overlay";

/**
Expand Down
2 changes: 1 addition & 1 deletion editor/pages/figma/to-flutter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
WorkspaceContentPanelGridLayout,
} from "../../layout/panel";
import { PreviewAndRunPanel } from "../../components/preview-and-run";
import { useDesign } from "../../query-hooks";
import { useDesign } from "../../hooks";
import { CodeEditor, MonacoEditor } from "../../components/code-editor";
import LoadingLayout from "../../layout/loading-overlay";

Expand Down
2 changes: 1 addition & 1 deletion editor/pages/figma/to-token.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { LayerHierarchy } from "../../components/editor-hierarchy";
import { WorkspaceContentPanelGridLayout } from "../../layout/panel/workspace-content-panel-grid-layout";
import { WorkspaceContentPanel } from "../../layout/panel";
import { WorkspaceBottomPanelDockLayout } from "../../layout/panel/workspace-bottom-panel-dock-layout";
import { useDesign } from "../../query-hooks";
import { useDesign } from "../../hooks";
import {
ImageRepository,
MainImageRepository,
Expand Down
2 changes: 1 addition & 1 deletion editor/pages/live/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Pusher from "pusher-js";
import { useState } from "react";
import { useEffect } from "react";
import LoadingLayout from "../../layout/loading-overlay";
import { useDesign } from "../../query-hooks";
import { useDesign } from "../../hooks";

const _base_url =
"https://ahzdf5x4q3.execute-api.us-west-1.amazonaws.com/production"; // "https://assistant-live-session.grida.cc";
Expand Down
2 changes: 1 addition & 1 deletion editor/pages/to-code/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from "react";
import { designToCode, Result } from "@designto/code";
import { useDesign } from "../../query-hooks";
import { useDesign } from "../../hooks";
import styled from "@emotion/styled";
import { DefaultEditorWorkspaceLayout } from "../../layout/default-editor-workspace-layout";
import { PreviewAndRunPanel } from "../../components/preview-and-run";
Expand Down
2 changes: 1 addition & 1 deletion editor/query-hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "./use-design";
export const dummy = "wip";

0 comments on commit 054defa

Please sign in to comment.