From c2a9ea9f45a3d29af56b402d5f7b364323be0fc9 Mon Sep 17 00:00:00 2001 From: Sachin Chaurasiya Date: Mon, 16 Aug 2021 11:35:53 +0530 Subject: [PATCH] adding icon for docs and api link (#196) --- .../src/main/resources/ui/src/assets/svg/api.svg | 1 + .../src/main/resources/ui/src/assets/svg/doc.svg | 1 + .../resources/ui/src/components/app-bar/Appbar.tsx | 14 ++++++++++++-- .../src/main/resources/ui/src/utils/SvgUtils.tsx | 12 ++++++++++++ 4 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 catalog-rest-service/src/main/resources/ui/src/assets/svg/api.svg create mode 100644 catalog-rest-service/src/main/resources/ui/src/assets/svg/doc.svg diff --git a/catalog-rest-service/src/main/resources/ui/src/assets/svg/api.svg b/catalog-rest-service/src/main/resources/ui/src/assets/svg/api.svg new file mode 100644 index 00000000000..61e7b93cb41 --- /dev/null +++ b/catalog-rest-service/src/main/resources/ui/src/assets/svg/api.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/catalog-rest-service/src/main/resources/ui/src/assets/svg/doc.svg b/catalog-rest-service/src/main/resources/ui/src/assets/svg/doc.svg new file mode 100644 index 00000000000..b915ae0b730 --- /dev/null +++ b/catalog-rest-service/src/main/resources/ui/src/assets/svg/doc.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/catalog-rest-service/src/main/resources/ui/src/components/app-bar/Appbar.tsx b/catalog-rest-service/src/main/resources/ui/src/components/app-bar/Appbar.tsx index 49995412c29..4563c8de244 100644 --- a/catalog-rest-service/src/main/resources/ui/src/components/app-bar/Appbar.tsx +++ b/catalog-rest-service/src/main/resources/ui/src/components/app-bar/Appbar.tsx @@ -139,7 +139,12 @@ const Appbar: React.FC = (): JSX.Element => { to={{ pathname: 'https://docs.open-metadata.org/', }}> - {/* */} + Docs { to={{ pathname: '/docs', }}> - {/* */} + API
diff --git a/catalog-rest-service/src/main/resources/ui/src/utils/SvgUtils.tsx b/catalog-rest-service/src/main/resources/ui/src/utils/SvgUtils.tsx index cfb791d72f5..448e7c9701d 100644 --- a/catalog-rest-service/src/main/resources/ui/src/utils/SvgUtils.tsx +++ b/catalog-rest-service/src/main/resources/ui/src/utils/SvgUtils.tsx @@ -1,7 +1,9 @@ import React, { FunctionComponent } from 'react'; import IconGoogle from '../assets/img/google-icon.png'; +import IconAPI from '../assets/svg/api.svg'; import IconSuccess from '../assets/svg/check.svg'; import IconAsstest from '../assets/svg/data-assets.svg'; +import IconDoc from '../assets/svg/doc.svg'; import IconError from '../assets/svg/error.svg'; import IconCheckCircle from '../assets/svg/ic-check-circle.svg'; import IconDelete from '../assets/svg/ic-delete.svg'; @@ -100,6 +102,8 @@ export const Icons = { SERVICE: 'service', USERS: 'users', TERMS: 'terms', + DOC: 'doc', + API: 'api', }; const SVGIcons: FunctionComponent = ({ @@ -297,6 +301,14 @@ const SVGIcons: FunctionComponent = ({ case Icons.TERMS: IconComponent = IconTerns; + break; + case Icons.DOC: + IconComponent = IconDoc; + + break; + case Icons.API: + IconComponent = IconAPI; + break; default: