fix: avatars & sidebars
This commit is contained in:
@@ -550,10 +550,10 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
|
||||
const renderHelpSubItem = React.useCallback((item: HelpItem) => {
|
||||
const content = (
|
||||
<>
|
||||
<item.icon className="mt-1.5 size-3 shrink-0 !text-muted-foreground/90" />
|
||||
<p className="text-xs font-light mt-1.5 text-muted-foreground/90 flex-1">{item.title}</p>
|
||||
<item.icon className="mt-0 size-2 shrink-0 !text-muted-foreground/90" />
|
||||
<p className="text-xs font-light mt-0 text-muted-foreground/90 flex-1">{item.title}</p>
|
||||
{item.external && (
|
||||
<ArrowUpRight className="mt-1.5 size-3 shrink-0 !text-muted-foreground/60" />
|
||||
<ArrowUpRight className="mt-0 size-10 shrink-0 !text-muted-foreground/60" />
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -44,9 +44,7 @@ export const workspacesApi = {
|
||||
uploadAvatar: (workspaceId: string, file: File) => {
|
||||
const formData = new FormData();
|
||||
formData.append("file", file);
|
||||
return api.post<Workspace>(`${BASE_PATH}/${workspaceId}/avatar`, formData, {
|
||||
headers: { "Content-Type": "multipart/form-data" },
|
||||
});
|
||||
return api.post<Workspace>(`${BASE_PATH}/${workspaceId}/avatar`, formData);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user