-
Notifications
You must be signed in to change notification settings - Fork 17
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
4578d69
commit 58da1b6
Showing
5 changed files
with
35 additions
and
55 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,13 +1,7 @@ | ||
import classNames from 'classnames'; | ||
import React from 'react'; | ||
export interface UnitTextProps { | ||
text: string; | ||
light?: boolean; | ||
} | ||
export const UnitText: React.FC<UnitTextProps> = ({ text, light }) => { | ||
return ( | ||
<span className={classNames(light ? 'text-stone-200' : 'text-stone-700', 'text-base ')}> | ||
{text} | ||
</span> | ||
); | ||
export const UnitText: React.FC<UnitTextProps> = ({ text }) => { | ||
return <span className="text-sm text-design-subtitleGrey">{text}</span>; | ||
}; |
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,16 +1,8 @@ | ||
import classNames from 'classnames'; | ||
import React from 'react'; | ||
|
||
export interface WidgetTextProps { | ||
text: string; | ||
light?: boolean; | ||
} | ||
export const WidgetText: React.FC<WidgetTextProps> = ({ text, light }) => { | ||
return ( | ||
<span | ||
className={classNames(light ? 'text-stone-100' : 'text-stone-900', 'text-base font-semibold')} | ||
> | ||
{text} | ||
</span> | ||
); | ||
export const WidgetText: React.FC<WidgetTextProps> = ({ text }) => { | ||
return <span className="text-base font-semibold text-gray-900">{text}</span>; | ||
}; |
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