Link and metamigo build fixes
This commit is contained in:
parent
4f2b7934e2
commit
785d0965e3
17 changed files with 26 additions and 16 deletions
|
|
@ -10,15 +10,17 @@ export const ZammadWrapper: FC<ZammadWrapperProps> = ({
|
|||
path,
|
||||
hideSidebar = true,
|
||||
}) => {
|
||||
const origin = typeof window !== 'undefined' && window.location.origin
|
||||
? window.location.origin
|
||||
: '';
|
||||
const origin =
|
||||
typeof window !== "undefined" && window.location.origin
|
||||
? window.location.origin
|
||||
: "";
|
||||
const [display, setDisplay] = useState("hidden");
|
||||
const url = `${origin}/zammad${path}`;
|
||||
console.log({ origin, path, url });
|
||||
|
||||
return (
|
||||
< Iframe
|
||||
// @ts-ignore
|
||||
<Iframe
|
||||
id="link"
|
||||
url={url}
|
||||
width="100%"
|
||||
|
|
@ -49,7 +51,6 @@ export const ZammadWrapper: FC<ZammadWrapperProps> = ({
|
|||
|
||||
setDisplay("inherit");
|
||||
}
|
||||
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue