History

fmt

Rhys Sullivan committed 6 months ago

Commit c92c57d1 parent 87ab5c7265 files · +5705 −8140Browse files

Showing the changes to packages/plugins/example/src (2 of 265 files). Show all

Unified · Split

2 files
  1. packages/plugins/example/src/client.tsx +2 −8
  2. packages/plugins/example/src/server.ts +1 −7
packages/plugins/example/src/client.tsx+2−8
@@ -11,11 +11,7 @@ · 10 unmodified lines
1111 // ---------------------------------------------------------------------------
1212
1313 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";
1915
2016 import { ExampleApi } from "./shared";
2117
@@ -68,9 +64,7 @@ function ExamplePage() { · 46 unmodified lines
6864 </button>
6965 </div>
7066 {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>
7468 )}
7569 </div>
7670 );
packages/plugins/example/src/server.ts+1−7
@@ -11,13 +11,7 @@ · 10 unmodified lines
1111 // React and other browser-only deps live in `./client` — never here.
1212 // ---------------------------------------------------------------------------
1313
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";
2115
2216 import { ExampleApi } from "./shared";
2317