refactor: rename agora fields
This commit is contained in:
@@ -22,8 +22,8 @@ const Voice = () => {
|
|||||||
});
|
});
|
||||||
useGetAgoraVoicingListQuery({
|
useGetAgoraVoicingListQuery({
|
||||||
appid: agoraConfig?.app_id ?? "",
|
appid: agoraConfig?.app_id ?? "",
|
||||||
key: agoraConfig?.rtm_key ?? "",
|
key: agoraConfig?.customer_id ?? "",
|
||||||
secret: agoraConfig?.rtm_secret ?? "",
|
secret: agoraConfig?.customer_secret ?? "",
|
||||||
|
|
||||||
}, {
|
}, {
|
||||||
skip: !isAdmin || !agoraConfig?.enabled || !navigator.onLine,
|
skip: !isAdmin || !agoraConfig?.enabled || !navigator.onLine,
|
||||||
|
|||||||
@@ -28,8 +28,8 @@ export default function ConfigAgora() {
|
|||||||
project_id,
|
project_id,
|
||||||
app_id,
|
app_id,
|
||||||
app_certificate,
|
app_certificate,
|
||||||
rtm_key,
|
customer_id,
|
||||||
rtm_secret,
|
customer_secret,
|
||||||
enabled = false
|
enabled = false
|
||||||
} = values as AgoraConfig;
|
} = values as AgoraConfig;
|
||||||
|
|
||||||
@@ -88,26 +88,26 @@ export default function ConfigAgora() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="input">
|
<div className="input">
|
||||||
<Label htmlFor="rtm_key">Customer ID</Label>
|
<Label htmlFor="customer_id">Customer ID</Label>
|
||||||
<Textarea
|
<Textarea
|
||||||
spellCheck={false}
|
spellCheck={false}
|
||||||
disabled={!enabled}
|
disabled={!enabled}
|
||||||
data-type="rtm_key"
|
data-type="customer_id"
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
value={rtm_key}
|
value={customer_id}
|
||||||
name="rtm_key"
|
name="customer_id"
|
||||||
placeholder="Customer ID for RESTful API"
|
placeholder="Customer ID for RESTful API"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="input">
|
<div className="input">
|
||||||
<Label htmlFor="rtm_secret">Customer Secret</Label>
|
<Label htmlFor="customer_secret">Customer Secret</Label>
|
||||||
<Textarea
|
<Textarea
|
||||||
spellCheck={false}
|
spellCheck={false}
|
||||||
disabled={!enabled}
|
disabled={!enabled}
|
||||||
data-type="rtm_secret"
|
data-type="customer_secret"
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
value={rtm_secret}
|
value={customer_secret}
|
||||||
name="rtm_secret"
|
name="customer_secret"
|
||||||
placeholder="Customer Secret for RESTful API"
|
placeholder="Customer Secret for RESTful API"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+2
-2
@@ -28,8 +28,8 @@ export interface AgoraConfig {
|
|||||||
project_id: string;
|
project_id: string;
|
||||||
app_id: string;
|
app_id: string;
|
||||||
app_certificate: string;
|
app_certificate: string;
|
||||||
rtm_key: string;
|
customer_id: string;
|
||||||
rtm_secret: string;
|
customer_secret: string;
|
||||||
}
|
}
|
||||||
export interface AgoraVoicingListResponse {
|
export interface AgoraVoicingListResponse {
|
||||||
success: boolean,
|
success: boolean,
|
||||||
|
|||||||
Reference in New Issue
Block a user