Add user profile image

This commit is contained in:
jeffvli
2022-11-13 20:18:23 -08:00
parent 14c22c63a0
commit 1babcc40ee
19 changed files with 1457 additions and 118 deletions
+6
View File
@@ -0,0 +1,6 @@
import { ServerFile } from '@/renderer/api/types';
export const getFileUrl = (serverUrl: string, file: ServerFile | null) => {
if (!file) return undefined;
return `${serverUrl}/${file.path}`;
};
+1
View File
@@ -6,3 +6,4 @@ export * from './server-folder-auth';
export * from './set-local-storage-setttings';
export * from './constrain-sidebar-width';
export * from './title-case';
export * from './get-file-url';