-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added footer with cookie notice (#3553)
* added footer * updated license headers * version++ * fixed eslint issues * Update cvat-ui/src/components/login-page/intel-footer-drawer.tsx Co-authored-by: Boris Sekachev <[email protected]> * Update cvat-ui/src/components/login-page/intel-footer-drawer.tsx Co-authored-by: Boris Sekachev <[email protected]> * Update cvat-ui/src/components/login-page/intel-footer-drawer.tsx Co-authored-by: Boris Sekachev <[email protected]> * fixed comments * minor fix * fixed linter Co-authored-by: Boris Sekachev <[email protected]>
- Loading branch information
Andrey Zhavoronkov
and
Boris Sekachev
authored
Aug 18, 2021
1 parent
1da3c96
commit 987b2ef
Showing
10 changed files
with
158 additions
and
147 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 0 additions & 49 deletions
49
cvat-ui/src/components/login-page/cookie-policy-drawer.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright (C) 2021 Intel Corporation | ||
// | ||
// SPDX-License-Identifier: MIT | ||
|
||
import React from 'react'; | ||
import { Layout } from 'antd'; | ||
|
||
import { isPublic } from 'utils/enviroment'; | ||
import consts from 'consts'; | ||
|
||
function FooterDrawer(): JSX.Element | null { | ||
const { Footer } = Layout; | ||
const { INTEL_TERMS_OF_USE_URL, INTEL_COOKIES_URL, INTEL_PRIVACY_URL } = consts; | ||
|
||
return isPublic() ? ( | ||
<Footer style={{ textAlign: 'center', borderTop: '1px solid #e8e8e8' }}> | ||
© Intel Corporation | | ||
<a target='_blank' rel='noopener noreferrer' href={INTEL_TERMS_OF_USE_URL}> Terms of Use </a> | ||
| | ||
<a target='_blank' rel='noopener noreferrer' data-cookie-notice='true' href={INTEL_COOKIES_URL}> Cookies </a> | ||
| | ||
<a target='_blank' rel='noopener noreferrer' href={INTEL_PRIVACY_URL}> Privacy </a> | ||
</Footer> | ||
) : null; | ||
} | ||
|
||
export default React.memo(FooterDrawer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.