-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Fides brand link position on small screens (#5572)
- Loading branch information
1 parent
78a5b7f
commit 874b5cd
Showing
6 changed files
with
65 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,32 @@ | ||
import { EthycaLogo, Link, LinkProps } from "fidesui"; | ||
|
||
const BrandLink = (props: LinkProps) => ( | ||
<Link | ||
fontSize="8px" | ||
color="gray.400" | ||
isExternal | ||
textDecoration="none" | ||
_hover={{ textDecoration: "none" }} | ||
{...props} | ||
> | ||
Powered by <EthycaLogo color="minos.500" h="20px" w="31px" /> | ||
</Link> | ||
); | ||
import { useSettings } from "~/features/common/settings.slice"; | ||
|
||
const BrandLink = ({ | ||
position = "absolute", | ||
right = 6, | ||
...props | ||
}: LinkProps) => { | ||
const { SHOW_BRAND_LINK } = useSettings(); | ||
|
||
if (!SHOW_BRAND_LINK) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<Link | ||
fontSize="8px" | ||
color="gray.400" | ||
isExternal | ||
position={position} | ||
right={right} | ||
textDecoration="none" | ||
_hover={{ textDecoration: "none" }} | ||
{...props} | ||
> | ||
Powered by <EthycaLogo color="minos.500" h="20px" w="31px" /> | ||
</Link> | ||
); | ||
}; | ||
|
||
export default BrandLink; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters