Skip to content

Commit 915805f

Browse files
authored
Merge pull request #37 from DIGOARTHUR/36-refactor-icons-import-stack-icons
refactor (icons): import stack icons and remove (deprecated) all project icons
2 parents df5d45b + 9b370ff commit 915805f

File tree

6 files changed

+3
-65
lines changed

6 files changed

+3
-65
lines changed

.DS_Store

0 Bytes
Binary file not shown.

src/components/ProjectIcons.tsx

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/components/StackIcons.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import React from 'react';
2-
3-
import { projectIconsURL } from '../icons/projectIconsURL';
42
import { stackIconsURL } from '../icons/stackIconsURL';
53

64
type Props = {
@@ -14,7 +12,7 @@ type Props = {
1412
* @returns {ReactNode} - Return tag img, stack svg icon.
1513
*/
1614
export function StackIcons({ itemTopics, className }: Props) {
17-
return itemTopics === 'deploy' || projectIconsURL[itemTopics] ? (
15+
return itemTopics === 'deploy' ? (
1816
<> </>
1917
) : (
2018
<img className={className} alt={stackIconsURL[itemTopics]} src={stackIconsURL[itemTopics]} />

src/components/StackLabels/StackLabels.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import React, { ReactNode } from 'react';
2-
3-
import { projectIconsURL } from '../../icons/projectIconsURL';
42
import { stackIconsURL } from '../../icons/stackIconsURL';
53
import { css } from './styles.js';
64

@@ -15,7 +13,7 @@ type Props = {
1513
* @returns {ReactNode} - Return tag p, stack text.
1614
*/
1715
export function StackLabels({ itemTopics, className = 'styleStackLabels' }: Props): ReactNode {
18-
return itemTopics === 'deploy' || projectIconsURL[itemTopics] || stackIconsURL[itemTopics] === undefined ? (
16+
return itemTopics === 'deploy' || stackIconsURL[itemTopics] === undefined ? (
1917
<> </>
2018
) : (
2119
<>

src/icons/projectIconsURL.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
export { ProjectIcons } from './components/ProjectIcons';
21
export { StackIcons } from './components/StackIcons';
32
export { StackLabels } from './components/StackLabels/StackLabels';
43
export { IGithubRepos, useGitHubAutomatedRepos } from './hook/useGithubAutomatedRepos';
54
export { ReactQueryProvider } from './hook/api/QueryClientProvider';
6-
export {_handleRepository } from "./hook/utils/_handleRepository"
5+
export {stackIconsURL} from "./icons/stackIconsURL";

0 commit comments

Comments
 (0)