-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ui: Added privacy policy and terms of service link in the footer #1216
Conversation
Powered by | ||
{/* eslint-disable-next-line react/jsx-no-target-blank */} | ||
<a href="https://answer.apache.org" target="_blank"> | ||
<a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Use the Link component of react-router-dom to replace the a tag.
- Remove target and rel attributes.
const fullYear = dayjs().format('YYYY'); | ||
const siteName = siteInfoStore((state) => state.siteInfo.name); | ||
const cc = `${fullYear} ${siteName}`; | ||
|
||
return ( | ||
<footer className="bg-light"> | ||
<Container className="py-3"> | ||
<p className="text-center mb-0 small text-secondary"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete text-secondary in class
PR need to be committed to the dev branch. |
In fact you don't need to re-submit the PR, you can continue to make changes at this PR. But since you have submitted a new PR, I am closing this PR. Duplicate of #1217 |
Changes
/privacy
) and "Terms of Service" (/tos
) links to the footer, accessible globally.privacy
,terms_of_service
, andbuild_on
) for localization.i18n/en_US.yaml
to include the new keys.Testing
Screenshots
Before:
After:
Issue Reference
Closes #1187