Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions docs/auth-flow/try-it-out.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: "Try it out"
description: "See Link in action"
---

1. Create a company following [this guide](/get-started/first-steps#1-create-a-company)
2. Add it to the input below
3. Click `Connect` to open Link

```jsx live
function AuthFlow() {
const [companyId, setCompanyId] = React.useState(
"e0e0462f-d7f3-456f-b3e9-0b40afe0245e",
);

return (
<div>
<label>Company ID:</label>
<input
type="text"
value={companyId}
onChange={(e) => setCompanyId(e.target.value)}
/>

<CodatLink companyId={companyId} />
</div>
);
}
```
227 changes: 3 additions & 224 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions sidebars/auth-flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,12 @@ module.exports = [
],
},
"auth-flow/migration-guide",
"auth-flow/try-it-out",
{
type: "link",
label: "NPM",
href: "https://www.npmjs.com/package/@codat/sdk-link-types",
},
{
type: "link",
label: "Try it out",
href: "https://sdk-link.vercel.app/",
},
{
type: "link",
label: "See examples",
Expand Down
4 changes: 0 additions & 4 deletions src/theme/ReactLiveScope/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import React, { useState } from "react";

import {
ConnectionCallbackArgs,
ErrorCallbackArgs,
} from "@codat/sdk-link-types";
import { CodatLink as Wrapper } from "@components/CodatLink";

import styles from "./styles.module.scss";
Expand Down
Loading