-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix/align garden UI across apps (#1138)
* fix/align garden ui across apps * chore: Remove unused imports in getTextColor.ts --------- Co-authored-by: Gustav-Eikaas <89254170+Gustav-Eikaas@users.noreply.github.com>
- Loading branch information
1 parent
ee3dcee
commit 5f2e26b
Showing
20 changed files
with
68 additions
and
106 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export { GardenHeader } from './Header'; | ||
export { GardenItem } from './Item'; |
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,6 +1,8 @@ | ||
import { itemContentColors } from '@cc-components/shared/mapping'; | ||
|
||
export const getTextColor = (status: string) => { | ||
if (status === 'Pressure test' || status === 'Insulation' || status === 'Complete') | ||
return '#000000'; | ||
return itemContentColors.Light; | ||
|
||
return '#ffffff'; | ||
return itemContentColors.Dark; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import { PunchStatus } from "@cc-components/punchshared"; | ||
import { PunchStatus } from '@cc-components/punchshared'; | ||
import { itemContentColors } from '@cc-components/shared/mapping'; | ||
|
||
export const punchStatusColors: Record<PunchStatus, string> = { | ||
'Cleared not verified': '#0084C4', | ||
Open: '#D9EAF2', | ||
Closed: '#4BB748', | ||
'Cleared not verified': '#0084C4', | ||
Open: '#D9EAF2', | ||
Closed: '#4BB748', | ||
}; | ||
|
||
export const punchStatusTextColors: Record<PunchStatus, string> = { | ||
'Cleared not verified': '#FFFFFF', | ||
Open: '#565656', | ||
Closed: '#FFFFFF', | ||
}; | ||
'Cleared not verified': itemContentColors.Dark, | ||
Open: itemContentColors.Light, | ||
Closed: itemContentColors.Dark, | ||
}; |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export { GardenItem } from './Item'; | ||
export { GardenHeader } from './Header'; |
5 changes: 3 additions & 2 deletions
5
libs/workorderapp/src/lib/utils-statuses/getTextColorByStatus.ts
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,7 +1,8 @@ | ||
import { FollowUpStatuses, ProcosysStatuses } from '@cc-components/shared'; | ||
import { itemContentColors } from '@cc-components/shared/mapping'; | ||
|
||
export const getTextColorByStatus = (status: string) => { | ||
return status === FollowUpStatuses.WOFinished || status === ProcosysStatuses.ComplByMC | ||
? '#ffffff' | ||
: '#212121'; | ||
? itemContentColors.Dark | ||
: itemContentColors.Light; | ||
}; |