generated from xgeekshq/oss-template
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: applied changes requested on PR
- Loading branch information
1 parent
95628f1
commit add27be
Showing
2 changed files
with
29 additions
and
26 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...end/src/components/Board/Settings/partials/ConfigurationSettings/SwitchThumbComponent.tsx
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,25 @@ | ||
import Icon from '@/components/icons/Icon'; | ||
import { SwitchThumb } from '@/components/Primitives/Switch'; | ||
|
||
type Props = { | ||
isChecked: boolean; | ||
iconName: string; | ||
color: string | undefined; | ||
}; | ||
|
||
const SwitchThumbComponent = ({ isChecked, iconName, color }: Props) => ( | ||
<SwitchThumb variant="sm"> | ||
{isChecked && ( | ||
<Icon | ||
name={iconName} | ||
css={{ | ||
width: '$10', | ||
height: '$10', | ||
color: color || '$successBase', | ||
}} | ||
/> | ||
)} | ||
</SwitchThumb> | ||
); | ||
|
||
export default SwitchThumbComponent; |
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