Skip to content

Commit c8f9085

Browse files
fix(docs): correct ListSchedules prop name from getRedirectUrl to getScheduleUrl (calcom#28419)
The documentation referenced `getRedirectUrl` but the actual component prop is `getScheduleUrl`, causing the callback to silently not fire.
1 parent 27a7821 commit c8f9085

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/platform/atoms/list-schedules.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { ListSchedules } from "@calcom/atoms";
1212
export default function ListSchedules() {
1313
return (
1414
<>
15-
<ListSchedules getRedirectUrl={(scheduleId) => `/availability/${scheduleId}`} />
15+
<ListSchedules getScheduleUrl={(scheduleId) => `/availability/${scheduleId}`} />
1616
</>
1717
);
1818
}
@@ -39,7 +39,7 @@ Below is a list of props that can be passed to the List schedules atom.
3939

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

4444
## Combining list schedules atom with availability settings atom
4545

@@ -57,13 +57,13 @@ import { ListSchedules } from "@calcom/atoms";
5757
export default function ListSchedules() {
5858
return (
5959
<>
60-
<ListSchedules getRedirectUrl={(scheduleId) => `/availability/${scheduleId}`} />
60+
<ListSchedules getScheduleUrl={(scheduleId) => `/availability/${scheduleId}`} />
6161
</>
6262
);
6363
}
6464
```
6565

66-
`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.
66+
`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.
6767

6868
</Step>
6969
<Step title="Setup availability settings atom">

0 commit comments

Comments
 (0)