Enhance audience management features with new components and API integrations
- Added `AssignCoursesModal`, `AudienceMemberRow`, `AudienceTable`, and related components for improved audience management UI. - Implemented audience invite actions including resend and revoke functionality. - Updated audience API to support importing members and assigning courses. - Refactored audience data handling to include status and invite management. - Improved overall user experience with pagination and selection features in the audience table.
This commit is contained in:
@@ -11,3 +11,14 @@ export function getCioCookieString(cookies: Cookies): string {
|
||||
.map((c) => `${c.name}=${c.value}`)
|
||||
.join('; ');
|
||||
}
|
||||
|
||||
export function getHasCioCookies(cookies: Cookies): boolean {
|
||||
const cioCookies = cookies.getAll().filter((c) => c.name.includes('classroomio'));
|
||||
|
||||
if (cioCookies.length === 0) return false;
|
||||
|
||||
// check if the cookies doesn't includ ONLY classroomio_locale
|
||||
const onlyLocaleCookie = cioCookies.every((c) => c.name === 'classroomio_locale');
|
||||
|
||||
return !onlyLocaleCookie;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user