-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c35f33d
commit 612989b
Showing
3 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
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,16 @@ | ||
/* SPDX-FileCopyrightText: 2024 Greenbone AG | ||
* | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
|
||
import withSvgIcon from './withSvgIcon'; | ||
|
||
import {X as Icon} from 'lucide-react'; | ||
|
||
import IconWithStrokeWidth from 'web/components/icon/IconWithStrokeWidth'; | ||
|
||
const XIcon = withSvgIcon()(props => ( | ||
<IconWithStrokeWidth IconComponent={Icon} {...props} /> | ||
)); | ||
|
||
export default XIcon; |
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,14 @@ | ||
/* SPDX-FileCopyrightText: 2024 Greenbone AG | ||
* | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
|
||
import {describe} from '@gsa/testing'; | ||
|
||
import {testIcon} from 'web/components/icon/testing'; | ||
|
||
import XIcon from '../XIcon'; | ||
|
||
describe('XIcon component tests', () => { | ||
testIcon(XIcon); | ||
}); |
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