-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Biz/dj 2788 google sheets submission doesnt work #15179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
8a4661b
d6a99e7
c3219de
a23439f
e7863c4
1544552
391c99d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |
| ComponentFormContainer, FrontendClientProvider, | ||
| } from "@pipedream/connect-react"; | ||
| import { fetchToken } from "./actions"; | ||
| import {DynamicProps} from "../../../../src"; | ||
|
Check failure on line 9 in packages/connect-react/examples/nextjs/src/app/page.tsx
|
||
|
|
||
| export default function Home() { | ||
| const userId = "my-authed-user-id"; | ||
|
|
@@ -21,6 +22,11 @@ | |
| text: "hello slack!", | ||
| }); | ||
|
|
||
| const [ | ||
| dynamicProps, | ||
| setDynamicProps, | ||
| ] = useState<DynamicProps<any>>(); | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Specify a more precise type. Using 🧰 Tools🪛 eslint[error] 28-28: Unexpected any. Specify a different type. (@typescript-eslint/no-explicit-any) 🪛 GitHub Check: Lint Code Base[failure] 28-28: |
||
| return ( | ||
| <> | ||
| <div>My application</div> | ||
|
|
@@ -29,13 +35,15 @@ | |
| userId={userId} | ||
| componentKey="slack-send-message" | ||
| configuredProps={configuredProps} | ||
| onUpdateDynamicProps={setDynamicProps} | ||
| onUpdateConfiguredProps={setConfiguredProps} | ||
| onSubmit={async () => { | ||
| try { | ||
| await client.actionRun({ | ||
| userId, | ||
| actionId: "slack-send-message", | ||
| configuredProps, | ||
| dynamicPropsId: dynamicProps?.id | ||
| }); | ||
| } catch (error) { | ||
| console.error("Action run failed:", error); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix spacing for import statement.
Per lint rules, a space is required after
{and before}in your import statement:📝 Committable suggestion
🧰 Tools
🪛 eslint
[error] 9-9: A space is required after '{'.
(object-curly-spacing)
[error] 9-9: A space is required before '}'.
(object-curly-spacing)
🪛 GitHub Check: Lint Code Base
[failure] 9-9:
A space is required after '{'
[failure] 9-9:
A space is required before '}'
🪛 GitHub Actions: Pull Request Checks
[error] 9-9: A space is required after '{' (object-curly-spacing)