Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
9001fa5
update readme
vherus Jul 12, 2024
5387d5a
add line space
Hamada-AB Jul 16, 2024
89585e7
change step 2 to step 4
MyrtheDullaart Jul 17, 2024
5fd7850
add step 2 form
MyrtheDullaart Jul 17, 2024
6cc68c8
handle login error messages
Hamada-AB Jul 17, 2024
dd8d7c5
add step 3 for create profile form
Jul 17, 2024
0f85b67
add * for required fields
MyrtheDullaart Jul 17, 2024
d2b7307
fix: add default value to readOnly and variable for the ternary Butto…
Jul 17, 2024
690c9af
Merge pull request #31 from boolean-uk/LeonardoSaraceli-#23-create_pr…
LeonardoSaraceli Jul 17, 2024
3430344
resolve conflicts
MyrtheDullaart Jul 17, 2024
4e704b4
edit stepper order
MyrtheDullaart Jul 17, 2024
cf26efd
Merge pull request #32 from boolean-uk/myrthedullaart-#23-create-step…
MyrtheDullaart Jul 17, 2024
2f933f4
handle registration error messages-c
Hamada-AB Jul 17, 2024
f7a4251
remove comments/ use {}
Hamada-AB Jul 18, 2024
29034c9
res conflict
Hamada-AB Jul 18, 2024
803e730
resolve conflict
Hamada-AB Jul 18, 2024
8ea78d4
fix: step 2 from create profile and improve token logic
Jul 18, 2024
2d64fa7
style: formatting changes
Jul 18, 2024
c50490b
Merge pull request #44 from boolean-uk/LeonardoSaraceli-#40-fix_creat…
LeonardoSaraceli Jul 18, 2024
2c19a24
fix: required first and last names at create profile and remove back …
Jul 18, 2024
27ec195
handle login/resgitration error messages
Hamada-AB Jul 19, 2024
4354c2a
fix: remove data from stepper
Jul 19, 2024
8cb8117
fix: adjust can progress at step one
Jul 19, 2024
c2c50e5
merge main
Hamada-AB Jul 19, 2024
2a89688
fix: set can progress boolean to true
Jul 19, 2024
8c76165
remove the debug log
Hamada-AB Jul 19, 2024
b82ca26
Merge pull request #35 from boolean-uk/Hamada-AB-#12-user_login_regis…
Hamada-AB Jul 19, 2024
8f2cd4f
fix: merge to main
Jul 19, 2024
b4188a3
style: adjust position of icon
Jul 19, 2024
4c551a3
Merge pull request #48 from boolean-uk/LeonardoSaraceli-#43-require_f…
LeonardoSaraceli Jul 19, 2024
15cf732
fix navigation on create profile
MyrtheDullaart Jul 19, 2024
64ebbf5
Merge pull request #55 from boolean-uk/myrthedullaart-#49-fix-navigation
MyrtheDullaart Jul 19, 2024
10d17f4
fix: password bug not changing value
Jul 19, 2024
82189e9
Merge pull request #60 from boolean-uk/LeonardoSaraceli-#59-password_…
LeonardoSaraceli Jul 19, 2024
edd8af4
fix typo
MyrtheDullaart Jul 19, 2024
45e6925
Merge pull request #63 from boolean-uk/myrthedullaart-#62-fix-typo
MyrtheDullaart Jul 19, 2024
5715862
Locate hardcoded values
angustownsley Jul 22, 2024
c9fa909
Create current user context and replace hardcoded data
angustownsley Jul 22, 2024
8b1748d
feat: install vite
Jul 22, 2024
8773fdd
fix: env name
Jul 22, 2024
ec32e2e
fix: undo env change name
Jul 22, 2024
1e01e3b
fix: change env name
Jul 22, 2024
8ba6750
fix: change icon
Jul 22, 2024
5def8a5
Merge pull request #84 from boolean-uk/LeonardoSaraceli-#69-install_vite
LeonardoSaraceli Jul 22, 2024
2c00232
fix:(auth) prevent login redirect during profile creation after refresh
Hamada-AB Jul 22, 2024
30c3b7e
Merge branch 'main' into Hamada-AB-#81-prevent_login_redirect_during_…
Hamada-AB Jul 22, 2024
9bc4274
Implement requested changes
angustownsley Jul 22, 2024
12409ec
Merge branch 'main' into angustownsley-79-fix_hardcoded_user_details
angustownsley Jul 22, 2024
0dd816d
Resolve merge conflict
angustownsley Jul 22, 2024
dbb049e
Extracted relevant data into components
angustownsley Jul 22, 2024
2f57e3f
Remove unused import
angustownsley Jul 23, 2024
5bbd7d3
Implement requested changes
angustownsley Jul 23, 2024
e031954
Merge pull request #83 from boolean-uk/angustownsley-79-fix_hardcoded…
angustownsley Jul 23, 2024
4cd76c0
Update to reference correct cohort key
angustownsley Jul 23, 2024
ed2543d
Remove unused function
angustownsley Jul 23, 2024
3ac179e
Merge pull request #91 from boolean-uk/angustownsley-fix_object_key_r…
angustownsley Jul 23, 2024
28fb3a6
update env and run npm ci
PerikK Jul 23, 2024
33079a3
feat: add search students modal
Jul 23, 2024
0febf5f
fix: merge main
Jul 23, 2024
63f2948
style: formmat
Jul 23, 2024
22e6070
merge main
Hamada-AB Jul 23, 2024
c4ac799
refactor(auth):use return and delete else block
Hamada-AB Jul 23, 2024
bfd5919
feat: add student menu modal
Jul 23, 2024
3f35562
Merge pull request #85 from boolean-uk/Hamada-AB-#81-prevent_login_re…
Hamada-AB Jul 23, 2024
7c702de
update env and run npm ci
PerikK Jul 23, 2024
e4b07f6
fix: adjust filter from search
Jul 23, 2024
40fdb45
fix: return null
Jul 23, 2024
b82c5a8
fix: change b tag for span tag
Jul 23, 2024
4812fab
Merge pull request #92 from boolean-uk/LeonardoSaraceli-#74-create_se…
LeonardoSaraceli Jul 23, 2024
e0a4e7a
pull
PerikK Jul 23, 2024
a2bb8db
trying to pull
PerikK Jul 23, 2024
1943acb
fix: missing components
Jul 23, 2024
2c2d74b
Merge pull request #94 from boolean-uk/LeonardoSaraceli-#93-fix_auth_…
LeonardoSaraceli Jul 23, 2024
11d52e9
Merge branch 'main' of github.com:boolean-uk/team-dev-client-c12
PerikK Jul 23, 2024
434c7c2
Remove hardcoded data
angustownsley Jul 24, 2024
952f537
fix: nullable firstName and lastName
Jul 24, 2024
3758455
Merge pull request #97 from boolean-uk/angustownsley-96-remove_hardco…
angustownsley Jul 24, 2024
4ccb713
Merge pull request #99 from boolean-uk/LeonardoSaraceli-#98-fix_nulla…
LeonardoSaraceli Jul 24, 2024
91db862
fix close popup on window click
MyrtheDullaart Jul 24, 2024
dea7f97
Merge branch 'main' of github.com:boolean-uk/team-dev-client-c12
PerikK Jul 24, 2024
1c87abe
resolve merge conflicts
MyrtheDullaart Jul 24, 2024
94ce472
Fix: nullable user initials and its full name when searching
Jul 24, 2024
e427c37
Fix: searching fullName instead of firstName or lastName
Jul 24, 2024
437eb6a
Fix: only people with firstName and lastName should be searched
Jul 24, 2024
78a04b1
Merge pull request #101 from boolean-uk/LeonardoSaraceli-#100-fix_nul…
LeonardoSaraceli Jul 24, 2024
b917a15
Merge branch 'main' of github.com:boolean-uk/team-dev-client-c12
PerikK Jul 24, 2024
a4cc481
fix clicking outside of menu should close it
MyrtheDullaart Jul 24, 2024
f3326fc
resolve conflicts
MyrtheDullaart Jul 24, 2024
7b700e5
Fix bug not allowing logged in users to access other routes
angustownsley Jul 24, 2024
57fcd01
Merge pull request #104 from boolean-uk/myrthedullaart-#80-close-moda…
MyrtheDullaart Jul 24, 2024
86bab0f
Remove workaround for get user endpoint bug
angustownsley Jul 24, 2024
cba2918
Add accessing parameters safely
angustownsley Jul 24, 2024
b0d20b0
Merge pull request #106 from boolean-uk/angustownsley-102-fix_navigat…
angustownsley Jul 24, 2024
957fdd1
first try on all search results - add left arrow svg
PerikK Jul 24, 2024
09e7203
Merge branch 'main' of github.com:boolean-uk/team-dev-client-c12
PerikK Jul 24, 2024
60a049a
Merge branch 'main' into PeriK_#76_Create_search_all_results-student_…
PerikK Jul 24, 2024
bc83f17
search results page (student-view) created -routing provided
PerikK Jul 24, 2024
1763be0
starting css
PerikK Jul 24, 2024
1f7e596
Some css done needs more
PerikK Jul 24, 2024
221f1ad
more css - -arrow link not working -moved to pages
PerikK Jul 25, 2024
36974bf
removed some superfluous code
PerikK Jul 25, 2024
b9052fe
Redirect users to profile stepper if firstName is missing
angustownsley Jul 25, 2024
7526b79
Remove redundant if
angustownsley Jul 25, 2024
aa5a71e
arrow link now works -fixed bug where when naviagting to the results …
PerikK Jul 25, 2024
cb265a2
Remove user nested objects workaround
angustownsley Jul 25, 2024
d6840a3
change arrow size -alter some styling
PerikK Jul 25, 2024
64ab727
Merge pull request #113 from boolean-uk/angustownsley-107-users_witho…
angustownsley Jul 25, 2024
a2aea2b
styling closer to design
PerikK Jul 25, 2024
a64f21b
Merge branch 'main' of github.com:boolean-uk/team-dev-client-c12
PerikK Jul 25, 2024
2612d1d
Merge branch 'main' into PeriK_#76_Create_search_all_results-student_…
PerikK Jul 25, 2024
dddf834
apllied changes according to boss demands
PerikK Jul 25, 2024
5bb9115
Revert "update env and run npm ci"
PerikK Jul 25, 2024
be1f909
run npm ci
PerikK Jul 25, 2024
7705e23
Merge branch 'main' into PeriK_#76_Create_search_all_results-student_…
PerikK Jul 25, 2024
6cd9ed4
add create new post
MyrtheDullaart Jul 25, 2024
ebbf9d3
Merge branch 'main' into myrthedullaart-#112-create-new-post
MyrtheDullaart Jul 25, 2024
644016a
Merge pull request #116 from boolean-uk/myrthedullaart-#112-create-ne…
MyrtheDullaart Jul 25, 2024
96d533a
Create errors file
angustownsley Jul 25, 2024
3a5b368
Merge branch 'main' into angustownsley-115-move_errors_to_seperate_file
angustownsley Jul 25, 2024
17d8de0
refactor on change to not use cohorts but getUsers
PerikK Jul 25, 2024
6917cf5
Merge pull request #117 from boolean-uk/angustownsley-115-move_errors…
angustownsley Jul 25, 2024
151994d
Merge branch 'main' of github.com:boolean-uk/team-dev-client-c12
PerikK Jul 25, 2024
cfee914
Merge branch 'main' into PeriK_#76_Create_search_all_results-student_…
PerikK Jul 25, 2024
e42559b
refactor to get initials before the return block
PerikK Jul 25, 2024
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
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
### Team Dev Client

Client repository for team dev project.

### Set up

1. Copy the `.env.example` file to a new file named `.env` (NOTE: Make sure to copy the file, don't remove the original .env.example)
Expand All @@ -11,8 +7,8 @@ Client repository for team dev project.

### Project Management

https://github.com/orgs/boolean-uk/projects/10/views/1
https://github.com/orgs/boolean-uk/projects/13/views/1

### Contributing

- Pull requests should be made from branches following the naming convention: `<username>-<issue_number>-<feature>`, e.g. `vherus-#1-user_registration`
- Pull requests MUST be made from branches following the naming convention: `<username>-<issue_number>-<feature>`, e.g. `vherus-#1-user_registration`
File renamed without changes.
7 changes: 4 additions & 3 deletions public/index.html → index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script type="module" src="/src/index.jsx"></script>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="apple-touch-icon" href="/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="manifest" href="/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Expand Down
File renamed without changes
File renamed without changes.
18,449 changes: 2,196 additions & 16,253 deletions package-lock.json

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@
"react-dom": "^18.2.0",
"react-modal": "^3.16.1",
"react-router-dom": "^6.8.0",
"react-scripts": "5.0.1",
"web-vitals": "^3.1.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"start": "vite",
"build": "vite build",
"serve": "vite preview"
},
"eslintConfig": {
"extends": [
Expand All @@ -37,5 +35,9 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.1",
"vite": "^5.3.4"
}
}
9 changes: 4 additions & 5 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
}

.container {
display: grid;
grid-template-columns: 151px 2fr 1fr;
grid-template-rows: 96px auto;
background-color: #F0F5FA;
height: 100vh;
display: grid;
grid-template-columns: 151px 2fr 1fr;
grid-template-rows: 96px auto;
background-color: #F0F5FA;
}

.ReactModal__Body--open,
Expand Down
46 changes: 0 additions & 46 deletions src/App.js

This file was deleted.

54 changes: 54 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import './App.css'
import { Routes, Route } from 'react-router-dom'
import Dashboard from './pages/dashboard'
import Login from './pages/login'
import Register from './pages/register'
import Loading from './pages/loading'
import Verification from './pages/verification'
import { AuthProvider, ProtectedRoute } from './context/auth'
import { ModalProvider } from './context/modal'
import { CurrentUserProvider } from './context/currentUser'
import Welcome from './pages/welcome'
import AllSearchResults from './pages/allSearchResults'

const App = () => {
return (
<>
<AuthProvider>
<CurrentUserProvider>
<ModalProvider>
<Routes>
<Route path="login" element={<Login />} />
<Route path="register" element={<Register />} />
<Route path="loading" element={<Loading />} />
<Route
path="verification"
element={<Verification />}
/>

<Route
index
element={
<ProtectedRoute>
<Dashboard />
</ProtectedRoute>
}
/>
<Route
path="welcome"
element={
<ProtectedRoute disabledNav={true}>
<Welcome />
</ProtectedRoute>
}
/>
<Route path="/search-results" element={<AllSearchResults />} />
</Routes>
</ModalProvider>
</CurrentUserProvider>
</AuthProvider>
</>
)
}

export default App
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions src/assets/icons/arrowLeftIcon.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const ArrowLeftIcon = ({onClick = null}) => {
return (
<svg
width="2.1rem"
height="2.3rem"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
onClick={onClick}
>
<path d="M1.328 10 8.203 3.125l0.829 0.828L3.57 9.414H18.672v1.172H3.57l5.463 5.463L8.203 16.875Z" />
</svg>
)
}

export default ArrowLeftIcon
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions src/assets/icons/ellipsisIcon.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const EllipsisIcon = () => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 448 512"
width={20}
height={20}
fill="#64648c"
>
<path d="M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z" />
</svg>
);
};

export default EllipsisIcon;
File renamed without changes.
12 changes: 12 additions & 0 deletions src/assets/icons/lockIcon.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const LockIcon = () => {
return (
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 448 512">
<path
d="M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"
fill="#64648C"
/>
</svg>
)
}

export default LockIcon
File renamed without changes.
File renamed without changes.
23 changes: 0 additions & 23 deletions src/assets/icons/profileIcon.js

This file was deleted.

30 changes: 30 additions & 0 deletions src/assets/icons/profileIcon.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const ProfileIcon = ({
colour = '#64648C',
background = 'transparent',
className,
onClick = null,
}) => {
return (
<svg
className={className}
onClick={onClick}
width="41"
height="40"
viewBox="0 0 41 40"
fill="none"
xmlns="http://www.w3.org/2000/svg"
style={{
borderRadius: '999px',
overflow: 'hidden',
background: background,
}}
>
<path
fill={colour}
d="M7.6 31.25C9.7 29.7833 11.7833 28.6583 13.85 27.875C15.9167 27.0917 18.1333 26.7 20.5 26.7C22.8667 26.7 25.0917 27.0917 27.175 27.875C29.2583 28.6583 31.35 29.7833 33.45 31.25C34.9167 29.45 35.9583 27.6333 36.575 25.8C37.1917 23.9667 37.5 22.0333 37.5 20C37.5 15.1667 35.875 11.125 32.625 7.875C29.375 4.625 25.3333 3 20.5 3C15.6667 3 11.625 4.625 8.375 7.875C5.125 11.125 3.5 15.1667 3.5 20C3.5 22.0333 3.81667 23.9667 4.45 25.8C5.08333 27.6333 6.13333 29.45 7.6 31.25ZM20.5 21.5C18.5667 21.5 16.9417 20.8417 15.625 19.525C14.3083 18.2083 13.65 16.5833 13.65 14.65C13.65 12.7167 14.3083 11.0917 15.625 9.775C16.9417 8.45833 18.5667 7.8 20.5 7.8C22.4333 7.8 24.0583 8.45833 25.375 9.775C26.6917 11.0917 27.35 12.7167 27.35 14.65C27.35 16.5833 26.6917 18.2083 25.375 19.525C24.0583 20.8417 22.4333 21.5 20.5 21.5ZM20.5 40C17.7667 40 15.1833 39.475 12.75 38.425C10.3167 37.375 8.19167 35.9417 6.375 34.125C4.55833 32.3083 3.125 30.1833 2.075 27.75C1.025 25.3167 0.5 22.7333 0.5 20C0.5 17.2333 1.025 14.6417 2.075 12.225C3.125 9.80833 4.55833 7.69167 6.375 5.875C8.19167 4.05833 10.3167 2.625 12.75 1.575C15.1833 0.525 17.7667 0 20.5 0C23.2667 0 25.8583 0.525 28.275 1.575C30.6917 2.625 32.8083 4.05833 34.625 5.875C36.4417 7.69167 37.875 9.80833 38.925 12.225C39.975 14.6417 40.5 17.2333 40.5 20C40.5 22.7333 39.975 25.3167 38.925 27.75C37.875 30.1833 36.4417 32.3083 34.625 34.125C32.8083 35.9417 30.6917 37.375 28.275 38.425C25.8583 39.475 23.2667 40 20.5 40ZM20.5 37C22.3333 37 24.125 36.7333 25.875 36.2C27.625 35.6667 29.35 34.7333 31.05 33.4C29.35 32.2 27.6167 31.2833 25.85 30.65C24.0833 30.0167 22.3 29.7 20.5 29.7C18.7 29.7 16.9167 30.0167 15.15 30.65C13.3833 31.2833 11.65 32.2 9.95 33.4C11.65 34.7333 13.375 35.6667 15.125 36.2C16.875 36.7333 18.6667 37 20.5 37ZM20.5 18.5C21.6333 18.5 22.5583 18.1417 23.275 17.425C23.9917 16.7083 24.35 15.7833 24.35 14.65C24.35 13.5167 23.9917 12.5917 23.275 11.875C22.5583 11.1583 21.6333 10.8 20.5 10.8C19.3667 10.8 18.4417 11.1583 17.725 11.875C17.0083 12.5917 16.65 13.5167 16.65 14.65C16.65 15.7833 17.0083 16.7083 17.725 17.425C18.4417 18.1417 19.3667 18.5 20.5 18.5Z"
/>
</svg>
)
}

export default ProfileIcon
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions src/components/PostModalActions/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import Button from "../button";

export default function PostModalActions({ onSubmit=null, text=''}) {
return (
<section className="create-post-actions">
<Button
onClick={onSubmit}
text="Post"
classes={`${text.length ? 'blue' : 'offwhite'} width-full`}
disabled={!text.length}
/>
</section>
)
}
32 changes: 32 additions & 0 deletions src/components/UserDetails/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import useUser from '../../hooks/useUser'

export default function UserDetails({ header = false }) {
const { currentUser } = useUser()

if (!currentUser || !currentUser?.firstName) {
return <div className="post-user-name"></div>
}

const userCohort = currentUser?.cohortId ? `, Cohort ${currentUser.cohortId}` : ''

const userFullName = `${currentUser?.firstName} ${currentUser?.lastName}`

if (header) {
return (
<div className="post-user-name">
<p>{userFullName}</p>
<small>
{currentUser.role} {userCohort}
</small>
</div>
)
}

const userFirstNameAndInital = `${currentUser?.firstName} ${currentUser?.lastName[0]}`

return (
<div className="post-user-name">
<p>{userFirstNameAndInital}</p>
</div>
)
}
18 changes: 18 additions & 0 deletions src/components/UserProfileIcon/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import useUser from '../../hooks/useUser'
import ProfileIcon from '../../assets/icons/profileIcon'

export default function UserProfileIcon({ onClick = null }) {
const { currentUser } = useUser()
if (!currentUser || !currentUser?.firstName) {
return <ProfileIcon className="profile-icon" colour="#000000" background='#5abedc' onClick={onClick} />
}

const userInitials =
currentUser?.firstName[0].toUpperCase() + currentUser?.lastName[0].toUpperCase()

return (
<div className="profile-icon" onClick={onClick}>
<p>{userInitials}</p>
</div>
)
}
File renamed without changes.
11 changes: 0 additions & 11 deletions src/components/card/index.js

This file was deleted.

13 changes: 13 additions & 0 deletions src/components/card/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import './style.css'

const Card = ({ children, boxShadow = false, name = "" }) => {
return (
<div
className={`card ${boxShadow && 'card-shadow'} ${name}`}
>
{children}
</div>
)
}

export default Card
Loading