mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 03:55:37 +01:00
Updated handling of env vars.
This commit is contained in:
parent
abd0913e9b
commit
30c1933718
8 changed files with 192 additions and 155 deletions
|
|
@ -13,11 +13,9 @@ import WebsiteEditForm from './WebsiteEditForm';
|
|||
|
||||
export function WebsiteSettings({
|
||||
websiteId,
|
||||
hostUrl,
|
||||
openExternal = false,
|
||||
}: {
|
||||
websiteId: string;
|
||||
hostUrl?: string;
|
||||
openExternal?: boolean;
|
||||
}) {
|
||||
const website = useContext(WebsiteContext);
|
||||
|
|
@ -62,8 +60,8 @@ export function WebsiteSettings({
|
|||
<Item key="data">{formatMessage(labels.data)}</Item>
|
||||
</Tabs>
|
||||
{tab === 'details' && <WebsiteEditForm websiteId={websiteId} onSave={handleSave} />}
|
||||
{tab === 'tracking' && <TrackingCode websiteId={websiteId} hostUrl={hostUrl} />}
|
||||
{tab === 'share' && <ShareUrl websiteId={websiteId} hostUrl={hostUrl} onSave={handleSave} />}
|
||||
{tab === 'tracking' && <TrackingCode websiteId={websiteId} />}
|
||||
{tab === 'share' && <ShareUrl websiteId={websiteId} onSave={handleSave} />}
|
||||
{tab === 'data' && <WebsiteData websiteId={websiteId} onSave={handleSave} />}
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue