Skip to content

Commit a8db623

Browse files
committed
get rid of a couple warnings
1 parent 6161fe4 commit a8db623

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/components/footer.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,8 @@ const TimestampLink = ({ timestamp, fileRelativePath }) => {
1818
const [historyRef, setHistoryRef] = useState(
1919
data.edbGit.branch === "main" ? data.edbGit.branch : "develop",
2020
);
21-
const [editBranch, setEditBranch] = useState("develop");
2221
useEffect(() => {
2322
setHistoryRef(data.edbGit.sha);
24-
// don't encourage folks to edit on main - set the edit links to develop in production builds
25-
setEditBranch(
26-
data.edbGit.branch === "main" ? "develop" : data.edbGit.branch,
27-
);
2823
}, [data.edbGit.branch, data.edbGit.sha]);
2924

3025
const url = `${data.edbGit.docsRepoUrl}/commits/${historyRef}${fileRelativePath}`;

src/components/pdf-download.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const PdfDownload = ({ pagePath, product, version, hidePDF }) => {
4444
iconName={iconNames.PDF}
4545
className="fill-orange me-1 position-relative top-minus-2"
4646
width="16"
47-
height="auto"
47+
height="100%"
4848
/>
4949
Download PDF
5050
</a>

0 commit comments

Comments
 (0)