Skip to content

Commit

Permalink
get rid of a couple warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-heyer committed Feb 5, 2025
1 parent 6161fe4 commit a8db623
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,8 @@ const TimestampLink = ({ timestamp, fileRelativePath }) => {
const [historyRef, setHistoryRef] = useState(
data.edbGit.branch === "main" ? data.edbGit.branch : "develop",
);
const [editBranch, setEditBranch] = useState("develop");
useEffect(() => {
setHistoryRef(data.edbGit.sha);
// don't encourage folks to edit on main - set the edit links to develop in production builds
setEditBranch(
data.edbGit.branch === "main" ? "develop" : data.edbGit.branch,
);
}, [data.edbGit.branch, data.edbGit.sha]);

const url = `${data.edbGit.docsRepoUrl}/commits/${historyRef}${fileRelativePath}`;
Expand Down
2 changes: 1 addition & 1 deletion src/components/pdf-download.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const PdfDownload = ({ pagePath, product, version, hidePDF }) => {
iconName={iconNames.PDF}
className="fill-orange me-1 position-relative top-minus-2"
width="16"
height="auto"
height="100%"
/>
Download PDF
</a>
Expand Down

2 comments on commit a8db623

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://edb-docs.netlify.app as production
πŸš€ Deployed on https://67a3b21c149c0b00bb678496--edb-docs.netlify.app

Please sign in to comment.