-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaces custom SVG icons with font=awesome icons.
- Loading branch information
1 parent
4864def
commit 9862564
Showing
8 changed files
with
77 additions
and
48 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
35 changes: 35 additions & 0 deletions
35
packages/neos-ui/src/Containers/PrimaryToolbar/WorkspaceSync/WorkspaceSyncIcon.js
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,35 @@ | ||
/* eslint-disable complexity */ | ||
import React from 'react'; | ||
import Icon from '@neos-project/react-ui-components/src/Icon/'; | ||
import style from './style.module.css'; | ||
import mergeClassNames from 'classnames'; | ||
import {WorkspaceStatus} from '@neos-project/neos-ts-interfaces'; | ||
|
||
const WorkspaceSyncIcon = ({personalWorkspaceStatus, onDarkBackground}) => { | ||
const iconBadgeClassNames = mergeClassNames({ | ||
[style.badgeIconBackground]: typeof onDarkBackground === 'undefined' || onDarkBackground === false, | ||
[style.badgeIconOnDarkBackground]: onDarkBackground === true, | ||
'fa-layers-counter': true, | ||
'fa-layers-bottom-right': true, | ||
'fa-2x': true | ||
}); | ||
const iconLayerClassNames = mergeClassNames({ | ||
[style.iconLayer]: true, | ||
'fa-layers': true, | ||
'fa-fw': true | ||
}); | ||
const iconBadge = personalWorkspaceStatus === WorkspaceStatus.OUTDATED_CONFLICT ? ( | ||
<span className={iconBadgeClassNames}> | ||
<Icon icon="exclamation"/> | ||
</span> | ||
) : null | ||
|
||
return ( | ||
<span className={iconLayerClassNames}> | ||
<Icon icon="sync" size="1x"/> | ||
{iconBadge} | ||
</span> | ||
) | ||
} | ||
|
||
export default WorkspaceSyncIcon; |
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