mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-10 14:22:46 +02:00
Add user profile image
This commit is contained in:
@@ -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}`;
|
||||
};
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user