feat: Added config url for TOS and Privacy Policy
The feature to add a configurable URL for TOS and Privacy Policy. The user needs to set the footerConfig in config.js and if the value is present the footer appears with the link. If not the footer will disappear.
Supporting information
- Jira ticket: BB-7788
- GitLab issue: #112 (closed)
Discussions
Link to any public discussions about this PR or the design/architecture. Otherwise omit this.
Dependencies
None
Visual changes
Merge deadline
"None" if there's no rush, "ASAP" if it's critical, or provide a specific date if there is one.
Testing instructions
Step by step procedure
- Change into the feature branch
-
make build or make
to get the development environment up and running - Get into the frontend repo
cd frontend
- Run
npm start
, this will get the frontend running on http://localhost:3000, and you will notice no footer. - Check there is no footer, now in
frontend/.env.local
add
REACT_APP_TOS_LINK="https://listaflow.wpengine.com/terms-of-service/"
REACT_APP_PRIVACY_LINK="https://listaflow.wpengine.com/privacy-policy/"
Restart the server
- You will see the footer appear with the links.
Author notes and concerns
For now, we are supporting relative links.
Edited by Farhaan Bukhsh