Skip to content

Commit

Permalink
Fix rendering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinX8 committed Feb 18, 2022
1 parent 40db783 commit aff732e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
4 changes: 4 additions & 0 deletions src/assets/scss/core/abstracts/_mixins.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// Font Family
@mixin font-family($elem) {
@if (type-of($elem) == string) {
font-family: unquote(get-font-family($elem));
} @else {
font-family: initial;
}
}

// Font-size + Line-height + Kerning
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const Header = ({
className,
);

const vancedManagerAPKUrl = useContext(ManagerContext)?.assets[0]?.browser_download_url;
const vancedManagerAPKUrl = "https://github.com/YTVanced/VancedManager/releases/latest/download/manager.apk";

return (
<header {...props} className={classes}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/partials/FooterNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ADGUARD, BRAVE } from "../../../constants/links";
const FooterNav = ({ className, ...props }) => {
const classes = classNames("footer-nav", className);

const vancedManagerAPKUrl = useContext(ManagerContext)?.assets[0]?.browser_download_url;
const vancedManagerAPKUrl = "https://github.com/YTVanced/VancedManager/releases/latest/download/manager.apk";
const showBrave = useContext(ShowBraveContext);

return (
Expand Down
9 changes: 5 additions & 4 deletions src/components/sections/ChangeLogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ const ChangeLogs = ({

const changeLogsLoopData = [
{ name: "Vanced Manager", data: managerData },
{ name: "MicroG", data: vancedData },
{ name: "MicroG", data: microgData },
{ name: "YouTube™ Music Vanced", data: musicData },
{ name: "YouTube™ Vanced", data: microgData },
{ name: "YouTube™ Vanced", data: vancedData },
];

return (
Expand Down Expand Up @@ -95,16 +95,17 @@ const ChangeLogs = ({
className="m-0 mb-32 reveal-from-bottom text-sm text-color-secondary"
data-reveal-delay="400"
>
(v{data?.data?.tag_name.split('-')[0]})
({data?.data?.tag_name?.split('-')[0]})
</span>
</a>
</h3>
<p>Changelog:</p>
<ul>
{data?.data?.body.split("- ").map(point => {
{data?.data?.body?.split("- ").map(point => {
if (point) {
return <li key={point}>{point}</li>;
}
return point;
})}
</ul>
<hr />
Expand Down
4 changes: 2 additions & 2 deletions src/components/sections/Hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ const Hero = ({
tag="a"
color="primary"
wideMobile
href={vancedManager?.assets[0]?.browser_download_url}
href="https://github.com/YTVanced/VancedManager/releases/latest/download/manager.apk"
>
Vanced Manager ({vancedManager?.tag_name.split('-')[0]})
Vanced Manager ({vancedManager?.tag_name?.split('-')[0]})
<Image
src={DownloadImg}
alt="Features tile icon 01"
Expand Down

0 comments on commit aff732e

Please sign in to comment.