-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add twitter platform service and ui elements * push WIP * aesthetic and chat fixes * back out testing changes * switch to CDN links for x logo * fix copy paste error * remove log * remove incorrect super call * a couple small fixes * fix dual output for X * remove debug code --------- Co-authored-by: Sean Beyer <sean.beyer@streamlabs.com>
- Loading branch information
1 parent
cb248b2
commit df060c2
Showing
28 changed files
with
340 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
app/components-react/windows/go-live/platforms/TwitterEditStreamInfo.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React from 'react'; | ||
import PlatformSettingsLayout, { IPlatformComponentParams } from './PlatformSettingsLayout'; | ||
import { ITwitterStartStreamOptions } from '../../../../services/platforms/twitter'; | ||
import { createBinding } from '../../../shared/inputs'; | ||
import Form from '../../../shared/inputs/Form'; | ||
import { CommonPlatformFields } from '../CommonPlatformFields'; | ||
import GameSelector from '../GameSelector'; | ||
|
||
export function TwitterEditStreamInfo(p: IPlatformComponentParams<'twitter'>) { | ||
const twSettings = p.value; | ||
|
||
function updateSettings(patch: Partial<ITwitterStartStreamOptions>) { | ||
p.onChange({ ...twSettings, ...patch }); | ||
} | ||
|
||
const bind = createBinding(twSettings, updatedSettings => updateSettings(updatedSettings)); | ||
|
||
return ( | ||
<Form name="twitter-settings"> | ||
<PlatformSettingsLayout | ||
layoutMode={p.layoutMode} | ||
commonFields={ | ||
<CommonPlatformFields | ||
key="common" | ||
platform="twitter" | ||
layoutMode={p.layoutMode} | ||
value={twSettings} | ||
onChange={updateSettings} | ||
/> | ||
} | ||
requiredFields={<></>} | ||
/> | ||
</Form> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.