-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
Showing
21 changed files
with
65 additions
and
102 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
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 |
---|---|---|
@@ -1,50 +1,14 @@ | ||
import React, { ComponentProps } from 'react'; | ||
import { SvgIcon } from '@mui/material'; | ||
|
||
import ExportSvg from '../svgs/icons/export.svg?react'; | ||
import TadaSvg from '../svgs/icons/tada.svg?react'; | ||
import RocketSvg from '../svgs/icons/rocket.svg?react'; | ||
import QSFinishedSvg from '../svgs/icons/qs-finished.svg?react'; | ||
import StarsSvg from '../svgs/icons/stars.svg?react'; | ||
import SlackSvg from '../svgs/icons/slack.svg?react'; | ||
export { default as DropzoneIcon } from '../svgs/icons/dropzone.svg?react'; | ||
export { default as TaskDetailIcon } from '../svgs/icons/taskDetail.svg?react'; | ||
export { default as IntegrationIcon } from '../svgs/icons/integration.svg?react'; | ||
export { default as Slack } from '../svgs/icons/slack.svg?react'; | ||
export { default as Stars } from '../svgs/icons/stars.svg?react'; | ||
export { default as Dropzone } from '../svgs/icons/dropzone.svg?react'; | ||
export { default as TaskDetail } from '../svgs/icons/taskDetail.svg?react'; | ||
export { default as Integration } from '../svgs/icons/integration.svg?react'; | ||
export { default as CheckCircleDash } from '../svgs/icons/check-circle-dash.svg?react'; | ||
export { default as MtIcon } from '../svgs/icons/mt.svg?react'; | ||
export { default as TranslationMemoryIcon } from '../svgs/icons/translation-memory.svg?react'; | ||
export { default as Mt } from '../svgs/icons/mt.svg?react'; | ||
export { default as TranslationMemory } from '../svgs/icons/translation-memory.svg?react'; | ||
export { default as ViewCards } from '../svgs/icons/view-cards.svg?react'; | ||
export { default as ViewList } from '../svgs/icons/view-list.svg?react'; | ||
|
||
type IconProps = ComponentProps<typeof SvgIcon>; | ||
|
||
const CustomIcon: React.FC<IconProps & { icon: typeof ExportSvg }> = ({ | ||
icon, | ||
...props | ||
}) => { | ||
const Icon = icon; | ||
return ( | ||
<SvgIcon {...props}> | ||
<Icon fill="currentColor" /> | ||
</SvgIcon> | ||
); | ||
}; | ||
|
||
export const TadaIcon: React.FC<IconProps> = (props) => ( | ||
<CustomIcon icon={TadaSvg} {...props} /> | ||
); | ||
export const RocketIcon: React.FC<IconProps> = (props) => ( | ||
<CustomIcon icon={RocketSvg} {...props} /> | ||
); | ||
|
||
export const QSFinishedIcon: React.FC<IconProps> = (props) => ( | ||
<CustomIcon icon={QSFinishedSvg} {...props} /> | ||
); | ||
|
||
export const StarsIcon: React.FC<IconProps> = (props) => ( | ||
<CustomIcon icon={StarsSvg} {...props} /> | ||
); | ||
|
||
export const SlackIcon: React.FC<IconProps> = (props) => ( | ||
<CustomIcon icon={SlackSvg} {...props} /> | ||
); | ||
export { default as Rocket } from '../svgs/icons/rocket.svg?react'; | ||
export { default as RocketFilled } from '../svgs/icons/rocket-filled.svg?react'; | ||
export { default as Tada } from '../svgs/icons/tada.svg?react'; | ||
export { default as QsFinished } from '../svgs/icons/qs-finished.svg?react'; |
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
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
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
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
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
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
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
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
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
Oops, something went wrong.