mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-24 00:46:27 +03:00
lint
This commit is contained in:
parent
946b9c1867
commit
b7238dcd6e
@ -25,7 +25,6 @@ export default async ({ text, selection, setTextAndSelection, items }: Args) =>
|
||||
|
||||
const imagePrefix = '!';
|
||||
|
||||
|
||||
const placeholderPrefix = 'Uploading... ';
|
||||
|
||||
let newText = text;
|
||||
|
@ -385,9 +385,9 @@ export const UploadsGalleryModal = forwardRef(
|
||||
|
||||
map.forEach((value, index) => {
|
||||
console.log(index);
|
||||
const item:MediaItem = mediaUploadsQuery.data[index];
|
||||
const item: MediaItem = mediaUploadsQuery.data[index];
|
||||
data.push({
|
||||
url: mode === Modes.MODE_VIDEO ? (item.speakData?._id || '') : item.url,
|
||||
url: mode === Modes.MODE_VIDEO ? item.speakData?._id || '' : item.url,
|
||||
text: mode === Modes.MODE_VIDEO ? `3speak` : '',
|
||||
status: MediaInsertStatus.READY,
|
||||
mode,
|
||||
|
@ -17,7 +17,7 @@ const queryClientProviderProps = initQueryClient();
|
||||
|
||||
if (__DEV__) {
|
||||
import('react-query-native-devtools').then(({ addPlugin }) => {
|
||||
addPlugin({ queryClient:queryClientProviderProps.client });
|
||||
addPlugin({ queryClient: queryClientProviderProps.client });
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ const MainStackNavigator = () => {
|
||||
// TODO: remove initialRoute before PR
|
||||
return (
|
||||
<MainStack.Navigator
|
||||
initialRouteName={ROUTES.SCREENS.EDITOR}
|
||||
// initialRouteName={ROUTES.SCREENS.EDITOR}
|
||||
screenOptions={{ headerShown: false, animation: 'slide_from_right' }}
|
||||
>
|
||||
<MainStack.Screen name={ROUTES.DRAWER.MAIN} component={DrawerNavigator} />
|
||||
|
@ -14,7 +14,7 @@ export interface MediaItem {
|
||||
thumbUrl: string;
|
||||
created: string;
|
||||
timestamp: number;
|
||||
speakData?:ThreeSpeakVideo
|
||||
speakData?: ThreeSpeakVideo;
|
||||
}
|
||||
|
||||
export interface Snippet {
|
||||
|
@ -2,12 +2,12 @@ import { MediaItem } from '../ecency/ecency.types';
|
||||
import { BASE_URL_SPEAK_WATCH } from './constants';
|
||||
|
||||
export const convertVideoUpload = (data) => {
|
||||
return {
|
||||
_id:data._id,
|
||||
url:`${BASE_URL_SPEAK_WATCH}?v=${data.owner}/${data.permlink}`,
|
||||
thumbUrl:data.thumbUrl,
|
||||
created:data.created,
|
||||
timestamp:0,
|
||||
speakData:data
|
||||
} as MediaItem
|
||||
}
|
||||
return {
|
||||
_id: data._id,
|
||||
url: `${BASE_URL_SPEAK_WATCH}?v=${data.owner}/${data.permlink}`,
|
||||
thumbUrl: data.thumbUrl,
|
||||
created: data.created,
|
||||
timestamp: 0,
|
||||
speakData: data,
|
||||
} as MediaItem;
|
||||
};
|
||||
|
@ -672,6 +672,7 @@ class EditorContainer extends Component<EditorContainerProps, any> {
|
||||
)
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
|
||||
// track user activity for points
|
||||
userActivityMutation.mutate({
|
||||
pointsTy: PointActivityIds.POST,
|
||||
@ -694,6 +695,9 @@ class EditorContainer extends Component<EditorContainerProps, any> {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
//TODO: mark unpublished video as published on 3speak if that is the case
|
||||
|
||||
// post publish updates
|
||||
dispatch(deleteDraftCacheEntry(DEFAULT_USER_DRAFT_ID + currentAccount.name));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user