diff options
author | Ambroise C <ambroise.christea@sonarsource.com> | 2024-03-19 11:47:48 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-04-10 20:02:55 +0000 |
commit | e4d510ae08bffe482350633e423b455c006ca119 (patch) | |
tree | 6588ea997773482098f196b390b7dd3512d6b17a /server/sonar-web/design-system/src/components | |
parent | d5c21bcc36de8f5a0fcd9ce44b02eac9e30f9cab (diff) | |
download | sonarqube-e4d510ae08bffe482350633e423b455c006ca119.tar.gz sonarqube-e4d510ae08bffe482350633e423b455c006ca119.zip |
SONAR-21822 Add monorepo setup for GitHub
Diffstat (limited to 'server/sonar-web/design-system/src/components')
-rw-r--r-- | server/sonar-web/design-system/src/components/icons/AddNewIcon.tsx | 37 | ||||
-rw-r--r-- | server/sonar-web/design-system/src/components/icons/index.ts | 1 |
2 files changed, 38 insertions, 0 deletions
diff --git a/server/sonar-web/design-system/src/components/icons/AddNewIcon.tsx b/server/sonar-web/design-system/src/components/icons/AddNewIcon.tsx new file mode 100644 index 00000000000..6eee2ba2f12 --- /dev/null +++ b/server/sonar-web/design-system/src/components/icons/AddNewIcon.tsx @@ -0,0 +1,37 @@ +/* + * SonarQube + * Copyright (C) 2009-2024 SonarSource SA + * mailto:info AT sonarsource DOT com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ +import { useTheme } from '@emotion/react'; +import { themeColor } from '../../helpers'; +import { CustomIcon, IconProps } from './Icon'; + +export function AddNewIcon({ fill = 'currentColor', ...iconProps }: Readonly<IconProps>) { + const theme = useTheme(); + + return ( + <CustomIcon {...iconProps}> + <path + clipRule="evenodd" + d="M8 0c-.55228 0-1 .44771-1 1v6H1c-.55229 0-1 .44771-1 1 0 .55228.44771 1 1 1h6v6c0 .5523.44772 1 1 1 .55229 0 1-.4477 1-1V9h6c.5523 0 1-.44771 1-1 0-.55228-.4477-1-1-1H9V1c0-.55229-.44771-1-1-1Z" + fill={themeColor(fill)({ theme })} + fillRule="evenodd" + /> + </CustomIcon> + ); +} diff --git a/server/sonar-web/design-system/src/components/icons/index.ts b/server/sonar-web/design-system/src/components/icons/index.ts index 1ab42332abc..caeb1088b5a 100644 --- a/server/sonar-web/design-system/src/components/icons/index.ts +++ b/server/sonar-web/design-system/src/components/icons/index.ts @@ -17,6 +17,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +export { AddNewIcon } from './AddNewIcon'; export { BranchIcon } from './BranchIcon'; export { BugIcon } from './BugIcon'; export { CalendarIcon } from './CalendarIcon'; |