From 9b2420fa575ea6db9c12b746b86b8d4023494e67 Mon Sep 17 00:00:00 2001 From: Darya Plotnytska Date: Wed, 31 Jan 2024 15:20:44 +0100 Subject: [PATCH] console: Add star and plus icons --- pkg/webui/components/panel/story.js | 2 +- pkg/webui/components/plus-icon.js | 49 +++++++++++++++++++++++++++++ pkg/webui/components/star-icon.js | 49 +++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+), 1 deletion(-) create mode 100644 pkg/webui/components/plus-icon.js create mode 100644 pkg/webui/components/star-icon.js diff --git a/pkg/webui/components/panel/story.js b/pkg/webui/components/panel/story.js index b4c07adbef..d7091e02da 100644 --- a/pkg/webui/components/panel/story.js +++ b/pkg/webui/components/panel/story.js @@ -16,7 +16,7 @@ import React from 'react' import loginVisual from '@assets/img/layout/bg/login-visual.jpg' -import StarIcon from '@ttn-lw/components/icon/star-icon' +import StarIcon from '@ttn-lw/components/star-icon' import NewsItem from '../news-panel/news-item' diff --git a/pkg/webui/components/plus-icon.js b/pkg/webui/components/plus-icon.js new file mode 100644 index 0000000000..f25a1947bc --- /dev/null +++ b/pkg/webui/components/plus-icon.js @@ -0,0 +1,49 @@ +// Copyright © 2019 The Things Network Foundation, The Things Industries B.V. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import React from 'react' + +import PropTypes from '@ttn-lw/lib/prop-types' + +const PlusIcon = ({ className }) => ( + + + + + + + + +) + +PlusIcon.propTypes = { + className: PropTypes.string, +} + +PlusIcon.defaultProps = { + className: undefined, +} + +export default PlusIcon diff --git a/pkg/webui/components/star-icon.js b/pkg/webui/components/star-icon.js new file mode 100644 index 0000000000..593fd8cdb0 --- /dev/null +++ b/pkg/webui/components/star-icon.js @@ -0,0 +1,49 @@ +// Copyright © 2019 The Things Network Foundation, The Things Industries B.V. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import React from 'react' + +import PropTypes from '@ttn-lw/lib/prop-types' + +const StarIcon = ({ className }) => ( + + + + + + + + +) + +StarIcon.propTypes = { + className: PropTypes.string, +} + +StarIcon.defaultProps = { + className: undefined, +} + +export default StarIcon