Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **default**: `React.FC`\<[`InterfaceAgendaItemsPreviewModalProps`](../../../../../types/Agenda/interface/interfaces/InterfaceAgendaItemsPreviewModalProps.md)\>
Defined in: [src/components/AgendaItems/Preview/AgendaItemsPreviewModal.tsx:34](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AgendaItems/Preview/AgendaItemsPreviewModal.tsx#L34)
Defined in: [src/components/AgendaItems/Preview/AgendaItemsPreviewModal.tsx:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AgendaItems/Preview/AgendaItemsPreviewModal.tsx#L18)
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

> `const` **default**: `React.FC`\<[`InterfaceAgendaItemsUpdateModalProps`](../../../../../types/Agenda/interface/interfaces/InterfaceAgendaItemsUpdateModalProps.md)\>
Defined in: [src/components/AgendaItems/Update/AgendaItemsUpdateModal.tsx:53](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AgendaItems/Update/AgendaItemsUpdateModal.tsx#L53)
Defined in: [src/components/AgendaItems/Update/AgendaItemsUpdateModal.tsx:43](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AgendaItems/Update/AgendaItemsUpdateModal.tsx#L43)
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

> **default**(`props`): `Element`
Defined in: [src/components/ChangeLanguageDropdown/ChangeLanguageDropDown.tsx:46](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/ChangeLanguageDropdown/ChangeLanguageDropDown.tsx#L46)
Defined in: [src/components/ChangeLanguageDropdown/ChangeLanguageDropDown.tsx:30](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/ChangeLanguageDropdown/ChangeLanguageDropDown.tsx#L30)

## Parameters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

> **CheckInModal**(`__namedParameters`): `Element`
Defined in: [src/components/CheckIn/Modal/CheckInModal.tsx:56](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/Modal/CheckInModal.tsx#L56)
Defined in: [src/components/CheckIn/Modal/CheckInModal.tsx:36](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/Modal/CheckInModal.tsx#L36)

## Parameters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

> **TableRow**(`__namedParameters`): `Element`
Defined in: [src/components/CheckIn/Modal/Row/TableRow.tsx:47](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/Modal/Row/TableRow.tsx#L47)
Defined in: [src/components/CheckIn/Modal/Row/TableRow.tsx:41](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/Modal/Row/TableRow.tsx#L41)

## Parameters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

> **NotificationToastContainer**(`props`): `ReactElement`
Defined in: [src/components/NotificationToast/NotificationToast.tsx:90](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/NotificationToast/NotificationToast.tsx#L90)
Defined in: [src/components/NotificationToast/NotificationToast.tsx:131](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/NotificationToast/NotificationToast.tsx#L131)

NotificationToastContainer

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

> `const` **NotificationToast**: [`InterfaceNotificationToastHelpers`](../../../../types/NotificationToast/interface/interfaces/InterfaceNotificationToastHelpers.md)

Defined in: [src/components/NotificationToast/NotificationToast.tsx:76](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/NotificationToast/NotificationToast.tsx#L76)
Defined in: [src/components/NotificationToast/NotificationToast.tsx:115](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/NotificationToast/NotificationToast.tsx#L115)

NotificationToast

Expand All @@ -19,10 +19,18 @@ supports translating messages with an explicit i18n namespace.
NotificationToast.success('Saved');
```

```ts
```
NotificationToast.error({ key: 'unknownError', namespace: 'errors' });
```

```ts
NotificationToast.dismiss(); // Dismiss all active toasts
```

```ts
Notification.promise(promisifiedFunction, {
pending: 'pending message',
success: 'success message',
error: 'error message'
});
```
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Interface: InterfaceNotificationToastHelpers

Defined in: [src/types/NotificationToast/interface.ts:50](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L50)
Defined in: [src/types/NotificationToast/interface.ts:64](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L64)

Reusable helper API exposed by `NotificationToast`.

Expand All @@ -14,7 +14,7 @@ Reusable helper API exposed by `NotificationToast`.

> **dismiss**: () => `void`

Defined in: [src/types/NotificationToast/interface.ts:74](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L74)
Defined in: [src/types/NotificationToast/interface.ts:88](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L88)

Dismiss all active toasts.

Expand All @@ -28,7 +28,7 @@ Dismiss all active toasts.

> **error**: (`message`, `options?`) => `Id`

Defined in: [src/types/NotificationToast/interface.ts:59](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L59)
Defined in: [src/types/NotificationToast/interface.ts:73](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L73)

Show an error toast.

Expand All @@ -52,7 +52,7 @@ Show an error toast.

> **info**: (`message`, `options?`) => `Id`

Defined in: [src/types/NotificationToast/interface.ts:69](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L69)
Defined in: [src/types/NotificationToast/interface.ts:83](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L83)

Show an info toast.

Expand All @@ -72,11 +72,49 @@ Show an info toast.

***

### promise()

> **promise**: (`promisifiedFunction`, `messages`, `options?`) => `Promise`\<`void`\>

Defined in: [src/types/NotificationToast/interface.ts:94](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L94)

Promisified toast

#### Parameters

##### promisifiedFunction

() => `Promise`\<`void`\>

##### messages

###### error

[`NotificationToastMessage`](../type-aliases/NotificationToastMessage.md)

###### pending

[`NotificationToastMessage`](../type-aliases/NotificationToastMessage.md)

###### success

[`NotificationToastMessage`](../type-aliases/NotificationToastMessage.md)

##### options?

`ToastOptions`

#### Returns

`Promise`\<`void`\>

***

### success()

> **success**: (`message`, `options?`) => `Id`

Defined in: [src/types/NotificationToast/interface.ts:54](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L54)
Defined in: [src/types/NotificationToast/interface.ts:68](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L68)

Show a success toast.

Expand All @@ -100,7 +138,7 @@ Show a success toast.

> **warning**: (`message`, `options?`) => `Id`

Defined in: [src/types/NotificationToast/interface.ts:64](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L64)
Defined in: [src/types/NotificationToast/interface.ts:78](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L78)

Show a warning toast.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[Admin Docs](/)

***

# Interface: InterfacePromiseMessages

Defined in: [src/types/NotificationToast/interface.ts:50](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L50)

interface for the messages

## Properties

### error

> **error**: [`NotificationToastMessage`](../type-aliases/NotificationToastMessage.md)

Defined in: [src/types/NotificationToast/interface.ts:53](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L53)

***

### pending

> **pending**: [`NotificationToastMessage`](../type-aliases/NotificationToastMessage.md)

Defined in: [src/types/NotificationToast/interface.ts:51](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L51)

***

### success

> **success**: [`NotificationToastMessage`](../type-aliases/NotificationToastMessage.md)

Defined in: [src/types/NotificationToast/interface.ts:52](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L52)
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

> **NotificationToastContainerProps** = `ToastContainerProps`
Defined in: [src/types/NotificationToast/interface.ts:80](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L80)
Defined in: [src/types/NotificationToast/interface.ts:108](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L108)

Props for the `NotificationToastContainer` wrapper component.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Admin Docs](/)

***

# Type Alias: PromiseFunction()

> **PromiseFunction** = () => `Promise`\<`void`\>
Defined in: [src/types/NotificationToast/interface.ts:59](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/types/NotificationToast/interface.ts#L59)

Promisified function type

## Returns

`Promise`\<`void`\>
3 changes: 2 additions & 1 deletion public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -255,5 +255,6 @@
"or": "or",
"eventNotFound": "Event with id {{id}} not found",
"required": "Required",
"imageNotFound": "Image not found"
"imageNotFound": "Image not found",
"changeLanguage": "Change Language"
}
10 changes: 8 additions & 2 deletions public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,8 @@
"deleteAgendaItem": "Delete Agenda Item",
"deleteAgendaItemMsg": "Do you want to remove this agenda item?",
"event": "Event",
"search": "Search"
"search": "Search",
"attachmentPreview": "Attachment preview"
},
"eventListCard": {
"deleteEvent": "Delete Event",
Expand Down Expand Up @@ -1837,7 +1838,12 @@
},
"checkIn": {
"errorCheckingIn": "Error checking in",
"checkedInSuccessfully": "Checked in successfully"
"checkedInSuccessfully": "Checked in successfully",
"searchAttendees": "Search Attendees",
"checkedIn": "Checked In",
"downloadTag": "Download Tag",
"checkIn": "Check In",
"eventCheckInManagement": "Event Check In Management"
},
"eventRegistrantsModal": {
"errorAddingAttendee": "Error adding attendee",
Expand Down
3 changes: 2 additions & 1 deletion public/locales/es/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -255,5 +255,6 @@
"or": "o",
"eventNotFound": "Evento con id {{id}} no encontrado",
"required": "Obligatorio",
"imageNotFound": "Imagen no encontrada"
"imageNotFound": "Imagen no encontrada",
"changeLanguage": "Cambiar idioma"
}
10 changes: 8 additions & 2 deletions public/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,8 @@
"deleteAgendaItem": "Eliminar punto del orden del día",
"deleteAgendaItemMsg": "¿Desea eliminar este punto del orden del día?",
"event": "Evento",
"search": "Buscar"
"search": "Buscar",
"attachmentPreview": "Vista previa del adjunto"
},
"eventListCard": {
"location": "Lugar del evento",
Expand Down Expand Up @@ -1837,7 +1838,12 @@
},
"checkIn": {
"errorCheckingIn": "Error al registrarse",
"checkedInSuccessfully": "Registrado con éxito"
"checkedInSuccessfully": "Registrado con éxito",
"searchAttendees": "Buscar asistentes",
"checkedIn": "Registrado",
"downloadTag": "Descargar etiqueta",
"checkIn": "Registrar",
"eventCheckInManagement": "Gestión de registro de eventos"
},
"eventRegistrantsModal": {
"errorAddingAttendee": "Error al agregar asistente",
Expand Down
3 changes: 2 additions & 1 deletion public/locales/fr/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -255,5 +255,6 @@
"or": "ou",
"eventNotFound": "Événement avec l'id {{id}} non trouvé",
"required": "Obligatoire",
"imageNotFound": "Image non trouvée"
"imageNotFound": "Image non trouvée",
"changeLanguage": "Changer de langue"
}
10 changes: 8 additions & 2 deletions public/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,8 @@
"deleteAgendaItem": "Supprimer le point de l'ordre du jour",
"deleteAgendaItemMsg": "Voulez-vous supprimer ce point de l'ordre du jour ?",
"event": "Événement",
"search": "Rechercher"
"search": "Rechercher",
"attachmentPreview": "Aperçu de la pièce jointe"
},
"eventListCard": {
"deleteEvent": "Supprimer l'événement",
Expand Down Expand Up @@ -1854,7 +1855,12 @@
},
"checkIn": {
"errorCheckingIn": "Erreur lors de l'enregistrement",
"checkedInSuccessfully": "Enregistrement réussi"
"checkedInSuccessfully": "Enregistrement réussi",
"searchAttendees": "Rechercher des participants",
"checkedIn": "Enregistré",
"downloadTag": "Télécharger l'étiquette",
"checkIn": "Enregistrer",
"eventCheckInManagement": "Gestion des enregistrements d'événement"
},
"eventRegistrantsModal": {
"errorAddingAttendee": "Erreur lors de l'ajout du participant",
Expand Down
3 changes: 2 additions & 1 deletion public/locales/hi/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,5 +256,6 @@
"or": "या",
"eventNotFound": "ईवेंट आईडी {{id}} के साथ नहीं मिला",
"required": "आवश्यक",
"imageNotFound": "छवि नहीं मिली"
"imageNotFound": "छवि नहीं मिली",
"changeLanguage": "भाषा बदलें"
}
10 changes: 8 additions & 2 deletions public/locales/hi/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,8 @@
"deleteAgendaItem": "एजेंडा आइटम हटाएं",
"deleteAgendaItemMsg": "क्या आप इस एजेंडा आइटम को हटाना चाहते हैं?",
"event": "कार्यक्रम",
"search": "खोज"
"search": "खोज",
"attachmentPreview": "अटैचमेंट पूर्वावलोकन"
},
"eventListCard": {
"deleteEvent": "ईवेंट हटाएँ",
Expand Down Expand Up @@ -1854,7 +1855,12 @@
},
"checkIn": {
"errorCheckingIn": "चेक-इन में त्रुटि",
"checkedInSuccessfully": "सफलतापूर्वक चेक-इन किया गया"
"checkedInSuccessfully": "सफलतापूर्वक चेक-इन किया गया",
"searchAttendees": "उपस्थित लोगों को खोजें",
"checkedIn": "चेक इन किया गया",
"downloadTag": "टैग डाउनलोड करें",
"checkIn": "चेक इन करें",
"eventCheckInManagement": "इवेंट चेक इन प्रबंधन"
},
"eventRegistrantsModal": {
"errorAddingAttendee": "उपस्थित होने वाले को जोड़ने में त्रुटि",
Expand Down
3 changes: 2 additions & 1 deletion public/locales/zh/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,5 +256,6 @@
"or": "",
"eventNotFound": "未找到 ID 为 {{id}} 的活动",
"required": "必填",
"imageNotFound": "未找到图片"
"imageNotFound": "未找到图片",
"changeLanguage": "更改語言"
}
10 changes: 8 additions & 2 deletions public/locales/zh/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,8 @@
"deleteAgendaItem": "删除议程项目",
"deleteAgendaItemMsg": "您要删除此议程项目吗?",
"event": "活动",
"search": "搜索"
"search": "搜索",
"attachmentPreview": "附件預覽"
},
"eventListCard": {
"deleteEvent": "删除事件",
Expand Down Expand Up @@ -1854,7 +1855,12 @@
},
"checkIn": {
"errorCheckingIn": "签到错误",
"checkedInSuccessfully": "成功签到"
"checkedInSuccessfully": "成功签到",
"searchAttendees": "搜尋參與者",
"checkedIn": "已簽到",
"downloadTag": "下載標籤",
"checkIn": "簽到",
"eventCheckInManagement": "活動簽到管理"
},
"eventRegistrantsModal": {
"errorAddingAttendee": "添加与会者时出错",
Expand Down
Loading
Loading