edit social handles in modal, wip

This commit is contained in:
gingervitis
2021-01-23 20:16:01 -08:00
committed by Gabe Kangas
parent d2adda123c
commit c3547f189d
4 changed files with 203 additions and 11 deletions

View File

@@ -21,6 +21,13 @@ export interface ToggleSwitchProps {
disabled?: boolean;
}
// for dropdown
export interface SocialHandleDropdownItem {
icon: string;
platform: string;
key: string;
}
export type FieldUpdaterFunc = (args: UpdateArgs) => void;
export interface UpdateArgs {
@@ -46,7 +53,7 @@ export interface ConfigInstanceDetailsFields {
logo: string;
name: string;
nsfw: boolean;
socialHandles: SocialHandleItem[],
socialHandles: SocialHandle[],
streamTitle: string;
summary: string;
tags: string[];
@@ -56,10 +63,10 @@ export interface ConfigInstanceDetailsFields {
export type PRESET = 'fast' | 'faster' | 'veryfast' | 'superfast' | 'ultrafast';
export interface SocialHandleItem {
icon: string;
// from data
export interface SocialHandle {
platform: string;
key: string;
url: string;
}
export interface VideoVariant {