Skip to content
Snippets Groups Projects
Commit 8769242b authored by Tianyi Liang's avatar Tianyi Liang
Browse files

refactor: camelCase

parent d3da823e
No related branches found
No related tags found
No related merge requests found
function AttributionForm() { function AttributionForm() {
const team_id = import.meta.env.VITE_TEAM_ID; const teamID = import.meta.env.VITE_TEAM_ID;
// Listen to size change and update form height // Listen to size change and update form height
window.addEventListener("message", function (e) { window.addEventListener("message", function (e) {
...@@ -19,7 +19,7 @@ function AttributionForm() { ...@@ -19,7 +19,7 @@ function AttributionForm() {
<iframe <iframe
style={{ width: "100%" }} style={{ width: "100%" }}
id="igem-attribution-form" id="igem-attribution-form"
src={`https://teams.igem.org/${team_id}/attributions`} src={`https://teams.igem.org/${teamID}/attributions`}
/> />
</> </>
); );
......
import { stringToSlug } from "../../utils"; import { stringToSlug } from "../../utils";
function ExampleFooter() { function ExampleFooter() {
const team_year = import.meta.env.VITE_TEAM_YEAR; const teamYear = import.meta.env.VITE_TEAM_YEAR;
const team_name = import.meta.env.VITE_TEAM_NAME; const teamName = import.meta.env.VITE_TEAM_NAME;
const team_slug = stringToSlug(team_name); const teamSlug = stringToSlug(teamName);
return ( return (
<footer className="pt-5 pb-5 footer py-5 mt-5 bg-dark text-white"> <footer className="pt-5 pb-5 footer py-5 mt-5 bg-dark text-white">
...@@ -66,8 +66,8 @@ function ExampleFooter() { ...@@ -66,8 +66,8 @@ function ExampleFooter() {
<p> <p>
<small> <small>
The repository used to create this website is available at{" "} The repository used to create this website is available at{" "}
<a href={`https://gitlab.igem.org/${team_year}/${team_slug}`}> <a href={`https://gitlab.igem.org/${teamYear}/${teamSlug}`}>
gitlab.igem.org/{team_year}/{team_slug} gitlab.igem.org/{teamYear}/{teamSlug}
</a> </a>
. .
</small> </small>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment