Showing the changes to packages/plugins/example/src (2 of 265 files). Show all
Unified · Split
| @@ -11,11 +11,7 @@ · 10 unmodified lines | ||
| 11 | 11 | // --------------------------------------------------------------------------- |
| 12 | 12 | |
| 13 | 13 | import { useState } from "react"; |
| 14 | −import { | |
| 15 | − defineClientPlugin, | |
| 16 | − createPluginAtomClient, | |
| 17 | − useAtomSet, | |
| 18 | −} from "@executor-js/sdk/client"; | |
| 14 | +import { defineClientPlugin, createPluginAtomClient, useAtomSet } from "@executor-js/sdk/client"; | |
| 19 | 15 | |
| 20 | 16 | import { ExampleApi } from "./shared"; |
| 21 | 17 | |
| @@ -68,9 +64,7 @@ function ExamplePage() { · 46 unmodified lines | ||
| 68 | 64 | </button> |
| 69 | 65 | </div> |
| 70 | 66 | {result && ( |
| 71 | − <pre style={{ marginTop: "1rem", padding: "0.5rem", background: "#f5f5f5" }}> | |
| 72 | − {result} | |
| 73 | − </pre> | |
| 67 | + <pre style={{ marginTop: "1rem", padding: "0.5rem", background: "#f5f5f5" }}>{result}</pre> | |
| 74 | 68 | )} |
| 75 | 69 | </div> |
| 76 | 70 | ); |
| @@ -11,13 +11,7 @@ · 10 unmodified lines | ||
| 11 | 11 | // React and other browser-only deps live in `./client` — never here. |
| 12 | 12 | // --------------------------------------------------------------------------- |
| 13 | 13 | |
| 14 | −import { | |
| 15 | − Context, | |
| 16 | − definePlugin, | |
| 17 | − Effect, | |
| 18 | − HttpApi, | |
| 19 | − HttpApiBuilder, | |
| 20 | −} from "@executor-js/sdk"; | |
| 14 | +import { Context, definePlugin, Effect, HttpApi, HttpApiBuilder } from "@executor-js/sdk"; | |
| 21 | 15 | |
| 22 | 16 | import { ExampleApi } from "./shared"; |
| 23 | 17 | |