Skip to content
Merged
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
8 changes: 4 additions & 4 deletions docs/platform/atoms/list-schedules.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ListSchedules } from "@calcom/atoms";
export default function ListSchedules() {
return (
<>
<ListSchedules getRedirectUrl={(scheduleId) => `/availability/${scheduleId}`} />
<ListSchedules getScheduleUrl={(scheduleId) => `/availability/${scheduleId}`} />
</>
);
}
Expand All @@ -39,7 +39,7 @@ Below is a list of props that can be passed to the List schedules atom.

| Name | Required | Description |
| :------------- | :------- | :---------------------------------------------------------------------------------------------------------------- |
| getRedirectUrl | No | Callback function that determines where the user should be redirected when they click on a schedule from the atom |
| getScheduleUrl | No | Callback function that determines where the user should be redirected when they click on a schedule from the atom |

## Combining list schedules atom with availability settings atom

Expand All @@ -57,13 +57,13 @@ import { ListSchedules } from "@calcom/atoms";
export default function ListSchedules() {
return (
<>
<ListSchedules getRedirectUrl={(scheduleId) => `/availability/${scheduleId}`} />
<ListSchedules getScheduleUrl={(scheduleId) => `/availability/${scheduleId}`} />
</>
);
}
```

`getRedirectUrl` prop is a callback function that determines where the user should be redirected when they click on a schedule from the atom. Say if you want to display your availability settings atom on the page `/availability/:scheduleId`, you need to make sure you return the exact same url when you call the `getRedirectUrl` function.
`getScheduleUrl` prop is a callback function that determines where the user should be redirected when they click on a schedule from the atom. Say if you want to display your availability settings atom on the page `/availability/:scheduleId`, you need to make sure you return the exact same url when you call the `getScheduleUrl` function.

</Step>
<Step title="Setup availability settings atom">
Expand Down
Loading