Skip to content

Instantly share code, notes, and snippets.

@iamjohnlong
Created November 22, 2021 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamjohnlong/9c22945f92ecd6aa946c9ce68546d069 to your computer and use it in GitHub Desktop.
Save iamjohnlong/9c22945f92ecd6aa946c9ce68546d069 to your computer and use it in GitHub Desktop.
const Widget: NextPage = () => {
const router = useRouter();
const { extensionUid } = router.query;
if (!extensionUid) return null;
return (
<>
<Wrapper uid={extensionUid as string} declaration={declaration}>
<Field />
</Wrapper>
<style jsx global>{`
html,
body {
height: auto;
}
`}</style>
</>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment