feat(tiktok): add content posting method alternative to settings

This commit is contained in:
Keiwan Mosaddegh 2025-01-23 09:52:12 +01:00
parent 13b26030b4
commit 912895b6c7
1 changed files with 24 additions and 0 deletions

View File

@ -33,6 +33,17 @@ const privacyLevel = [
},
];
const contentPostingMethod = [
{
value: 'DIRECT_POST',
label: 'Post content directly to TikTok',
},
{
value: 'UPLOAD',
label: 'Upload content to TikTok without posting it',
},
];
const yesNo = [
{
value: 'true',
@ -126,6 +137,19 @@ const TikTokSettings: FC<{ values?: any }> = (props) => {
</option>
))}
</Select>
<Select
label="Content posting method"
{...register('content_posting_method', {
value: 'DIRECT_POST',
})}
>
<option value="">Select</option>
{contentPostingMethod.map((item) => (
<option key={item.value} value={item.value}>
{item.label}
</option>
))}
</Select>
<hr className="mb-[15px] border-tableBorder" />
<div className="text-[14px] mb-[10px]">Allow User To:</div>
<div className="flex gap-[40px]">