Skip to content

Commit d0be77a

Browse files
authored
chore: fix react rsnet (#1904)
1 parent faca1fd commit d0be77a

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

embedding-reports/display-reports-in-applications/web-application/native-blazor-report-viewer/api-reference/options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public ReportSourceOptions ReportSource { get; set; } = new ReportSourceOptions(
9898
authenticating with the report server.</li>
9999
<li><strong>Password</strong> - (string, required) Defines the Password to be used for
100100
authenticating with the report server.</li>
101-
<li><strong>GetPersonalAccessToken</strong> (`Task<string>`, *optional*, *RS.NET specific*) - specifies the callback function that should return the Token for authentication against the Telerik Report Server for .NET instance as a *string* wrapper in a [Task](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task). </li>
101+
<li><strong>GetPersonalAccessToken</strong> (`Task<string>`, *optional*, *RS.NET specific*) - specifies the callback function that should return the Token for authentication against the Telerik Report Server for .NET instance as a *string* wrapped in a [Task](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task). </li>
102102
</ul>
103103
</li>
104104
<li><strong>SendEmailDialogSettings</strong> - Represents the predefined settings for the Send Email

embedding-reports/display-reports-in-applications/web-application/react-report-viewer/how-to-use-with-report-server-net.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -82,30 +82,30 @@ const reportServer = {
8282
````JS
8383
import { TelerikReportViewer } from '@progress/telerik-react-report-viewer';
8484
85-
export function ReportViewer() {
86-
87-
const reportServer = {
88-
url: 'http://reportServerUrl:port/',
89-
getPersonalAccessToken: () => fetch('/rs-token').then(response => response.text())
90-
}
91-
92-
const reportSource = {
93-
report: 'Samples/Dashboard',
94-
parameters: {}
95-
}
96-
97-
const viewerContainerStyle = {
98-
position: 'absolute',
99-
inset: '5px'
100-
}
85+
export function ReportViewer() {
10186
102-
return (
103-
<TelerikReportViewer
104-
reportServer={reportServer}
105-
reportSource={reportSource}
106-
viewerContainerStyle={viewerContainerStyle} />
107-
)
108-
}
87+
const reportServer = {
88+
url: 'http://reportServerUrl:port/',
89+
getPersonalAccessToken: () => fetch('/rs-token').then(response => response.text())
90+
}
91+
92+
const reportSource = {
93+
report: 'Samples/Dashboard',
94+
parameters: {}
95+
}
96+
97+
const viewerContainerStyle = {
98+
position: 'absolute',
99+
inset: '5px'
100+
}
101+
102+
return (
103+
<TelerikReportViewer
104+
reportServer={reportServer}
105+
reportSource={reportSource}
106+
viewerContainerStyle={viewerContainerStyle} />
107+
)
108+
}
109109
````
110110

111111

0 commit comments

Comments
 (0)