Commit aae195a
authored
Add warning indicator for listings older than 1 year (#2548)
Fixes #2068
- Add isOldListing function to check if listing is >1 year old
- Display warning message for outdated listings in StakeholderDetails
- Use yellow warning styling
- Warning appears above 'Data updated on' text for verified listings
- Wrap new Alert around DetailText to have consistent margins1 parent 258d8f5 commit aae195a
1 file changed
Lines changed: 30 additions & 9 deletions
Lines changed: 30 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
246 | 247 | | |
247 | 248 | | |
248 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
249 | 257 | | |
250 | 258 | | |
251 | 259 | | |
| |||
716 | 724 | | |
717 | 725 | | |
718 | 726 | | |
719 | | - | |
720 | 727 | | |
721 | 728 | | |
722 | 729 | | |
723 | 730 | | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
732 | 753 | | |
733 | 754 | | |
734 | 755 | | |
| |||
0 commit comments