Skip to content

Commit

Permalink
fix: delayed logo update
Browse files Browse the repository at this point in the history
  • Loading branch information
ervinpiol committed Oct 2, 2024
1 parent 5021d62 commit 18fae64
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/src/app/ee/admin/whitelabeling/ImageUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function ImageUpload({
}`}
>
<input {...getInputProps()} />
<Button>Upload</Button>
<Button type="button">Upload</Button>
<b className="text-emphasis text-sm md:text-base">
Drag and drop a .png or .jpg file, or click to select a file
</b>
Expand Down
7 changes: 5 additions & 2 deletions web/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import "./globals.css";
import { Inter as FontSans } from "next/font/google";
import { getCombinedSettings } from "@/components/settings/lib";
import {
fetchSettingsSS,
getCombinedSettings,
} from "@/components/settings/lib";
import { CUSTOM_ANALYTICS_ENABLED } from "@/lib/constants";
import { SettingsProvider } from "@/components/settings/SettingsProvider";
import { Metadata } from "next";
Expand Down Expand Up @@ -38,7 +41,7 @@ export default async function RootLayout({
}: {
children: React.ReactNode;
}) {
const combinedSettings = await getCombinedSettings({});
const combinedSettings = await fetchSettingsSS();

return (
<html lang="en">
Expand Down
24 changes: 24 additions & 0 deletions web/src/components/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,27 @@ export function Logo({
</div>
);
}

/* export function Logo({
height,
width,
className,
}: {
height?: number;
width?: number;
className?: string;
}) {
height = height || 40;
width = width || 40;
return (
<div style={{ height, width }} className={`relative ${className}`}>
<img
src={`/api/workspace/logo?u=${Date.now()}`}
alt="Logo"
style={{ objectFit: "contain", height, width, borderRadius: "8px" }}
/>
</div>
);
}
*/

0 comments on commit 18fae64

Please sign in to comment.