Skip to content

Commit

Permalink
Fixed merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
git-init-priyanshu committed Mar 4, 2024
1 parent 65041ad commit 2a026b5
Show file tree
Hide file tree
Showing 24 changed files with 778 additions and 873 deletions.
5 changes: 3 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"allowTypedFunctionExpressions": true
}
],
"camelcase": "off",
"@typescript-eslint/naming-convention": [
"error",
// Interfaces must begin with Interface or TestInterface followed by a PascalCase name
Expand All @@ -91,7 +92,7 @@
},
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE"],
"format": ["camelCase", "UPPER_CASE", "PascalCase"],
"leadingUnderscore": "allow"
},
{
Expand All @@ -101,7 +102,7 @@
},
{
"selector": "function",
"format": ["camelCase"]
"format": ["camelCase", "PascalCase"]
},
{
"selector": "memberLike",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
Test-Application:
name: Test Application
runs-on: ubuntu-latest
needs: [Code-Quality-Checks]
needs: [Code-Quality-Checks, Check-ESlint-Disable]
steps:
- name: Checkout the Repository
uses: actions/checkout@v4
Expand Down
3 changes: 3 additions & 0 deletions public/images/svg/profiledefault.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,10 @@
"users": "Users",
"searchName": "Enter Name",
"searchevent": "Enter Event",
"searchFullName": "Enter Full Name"
"searchFullName": "Enter Full Name",
"people": "People",
"sort": "Search by Role",
"actions": "Actions"
},
"userListCard": {
"joined": "Joined",
Expand Down
5 changes: 4 additions & 1 deletion public/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@
"searchName": "Entrez le nom",
"searchevent": "Entrez l'événement",
"searchFirstName": "Entrez votre prénom",
"searchLastName": "Entrer le nom de famille"
"searchLastName": "Entrer le nom de famille",
"people": "Personnes",
"sort": "Trier par rôle",
"actions": "Actions"
},
"userListCard": {
"joined": "Inscrit",
Expand Down
5 changes: 4 additions & 1 deletion public/locales/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@
"searchName": "नाम दर्ज करें",
"searchevent": "घटना दर्ज करें",
"searchFirstName": "प्रथम नाम दर्ज करें",
"searchLastName": "अंतिम नाम दर्ज करो"
"searchLastName": "अंतिम नाम दर्ज करो",
"people": "लोग",
"sort": "भूमिका के आधार पर खोजें",
"actions": "क्रियाएँ"
},
"userListCard": {
"joined": "में शामिल हो गए",
Expand Down
5 changes: 4 additions & 1 deletion public/locales/sp.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@
"searchName": "Ingrese su nombre",
"searchevent": "Ingresar evento",
"searchFirstName": "Ingrese el nombre",
"searchLastName": "Introduzca el apellido"
"searchLastName": "Introduzca el apellido",
"people": "Personas",
"sort": "Ordenar por Rol",
"actions": "Acciones"
},
"userListCard": {
"joined": "Unido",
Expand Down
5 changes: 4 additions & 1 deletion public/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@
"searchName": "輸入名字",
"searchevent": "輸入事件",
"searchFirstName": "输入名字",
"searchLastName": "输入姓氏"
"searchLastName": "输入姓氏",
"people": "",
"sort": "按角色搜索",
"actions": "操作"
},
"userListCard": {
"joined": "加入",
Expand Down
6 changes: 6 additions & 0 deletions src/GraphQl/Mutations/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,12 @@ export const REGISTER_EVENT = gql`
}
`;

export const UPLOAD_PRELOGIN_IMAGERY = gql`
mutation uploadPreLoginImagery($data: PreLoginImageryInput!) {
uploadPreLoginImagery(data: $data)
}
`;

// Create and Update Action Item Categories
export { CREATE_ACTION_ITEM_CATEGORY_MUTATION } from './ActionItemCategoryMutations';
export { UPDATE_ACTION_ITEM_CATEGORY_MUTATION } from './ActionItemCategoryMutations';
Expand Down
77 changes: 44 additions & 33 deletions src/components/LeftDrawer/LeftDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,45 +128,56 @@ const leftDrawer = ({
)}
</div>
<div style={{ marginTop: 'auto' }}>
<Link
to={{
pathname: `/member/id=${userId}`,
state: { from: 'orglist' },
}}
>
<Button
key={'profileBtn'}
className={styles.profileContainer}
variant={screenName === 'Profile' ? 'success' : 'light'}
data-testid="profileBtn"
>
<div className={styles.imageContainer}>
{userImage && userImage !== 'null' ? (
<img src={userImage} alt={`profile picture`} />
) : (
<Avatar
name={`${firstName} ${lastName}`}
alt={`dummy picture`}
/>
)}
</div>
<div className={styles.profileText}>
<span className={styles.primaryText}>
{firstName} {lastName}
</span>
<span
className={`${styles.secondaryText} ${
screenName === 'Profile' && 'text-white'
}`}
>
{`${userType}`.toLowerCase()}
</span>
</div>
<AngleRightIcon fill={'var(--bs-secondary)'} />
</Button>
</Link>

<Button
className={styles.profileContainer}
variant={screenName === 'Profile' ? 'success' : 'light'}
data-testid="profileBtn"
variant="light"
className={`mt-4 d-flex justify-content-start px-0 w-100 bg-danger text-white ${styles.logout}`}
onClick={(): void => logout()}
data-testid="logoutBtn"
>
<div className={styles.imageContainer}>
{userImage && userImage !== 'null' ? (
<img src={userImage} alt={`profile picture`} />
) : (
<Avatar name={`${firstName} ${lastName}`} alt={`dummy picture`} />
)}
<LogoutIcon fill={'white'} />
</div>
<div className={styles.profileText}>
<span className={styles.primaryText}>
{firstName} {lastName}
</span>
<span
className={`${styles.secondaryText} ${
screenName === 'Profile' && 'text-white'
}`}
>
{`${userType}`.toLowerCase()}
</span>
</div>
<AngleRightIcon fill={'var(--bs-secondary)'} />
{t('logout')}
</Button>
</div>

<Button
variant="light"
className={`mt-4 d-flex justify-content-start px-0 w-100 bg-danger text-white ${styles.logout}`}
onClick={(): void => logout()}
data-testid="logoutBtn"
>
<div className={styles.imageContainer}>
<LogoutIcon fill={'white'} />
</div>
{t('logout')}
</Button>
</div>
);
};
Expand Down
Loading

0 comments on commit 2a026b5

Please sign in to comment.