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