banners: Redesign organization profile incomplete navbar banner.

As part of the banner redesign project, this commit applies the new
banner styles to the organization profile incomplete navbar banner.
This commit is contained in:
Sayam Samal
2025-01-22 16:48:39 +05:30
committed by Tim Abbott
parent bf7d5637eb
commit 4bece9189b
7 changed files with 92 additions and 69 deletions

View File

@@ -544,17 +544,6 @@ export function get_time_limit_setting_in_appropriate_unit(
return {value: time_limit_in_days, unit: "day"};
}
export function should_display_profile_incomplete_alert(timestamp: number): boolean {
const today = new Date(Date.now());
const time = new Date(timestamp * 1000);
const days_old = difference_in_calendar_days(today, time, display_time_zone);
if (days_old >= 15) {
return true;
}
return false;
}
export function get_time_in_timezone(date: Date, timezone: string): number {
return Date.parse(date.toLocaleString("en-US", {timeZone: timezone}));
}