Skip to content

Commit

Permalink
fix(bug):fix a bug that causes the profile image to stay static
Browse files Browse the repository at this point in the history
  • Loading branch information
madebypatrick committed Sep 22, 2023
1 parent 234101d commit b0c877d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions src/components/ModalDataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,14 @@ function DataTable({ data, columns, title, removeModel }: TableData) {
onChange={(e) => setGlobalFilter(e.target.value)}
/>
</div>
<div style={{ marginTop: '-1.2cm', color: 'red' }}>
<div style={{ marginTop: '-2.2cm', color: 'red' }}>
<Button
variant=""
size="sxm"
style=""
className="transform rotate-45 w-120 h-120 text-5xl"
data-testid="delete"
onClick={() => removeModel()}
>
x
+
</Button>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/ratings/ViewWeeklyRatings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ function ViewSprintRatings({
{t('Trainee')} : {traineeName}
</h3>
<h1
className="absolute right-2 top-8 hover:text-red-500"
className="absolute right-0 top-2 text-red-500 transform rotate-45 w-120 h-120 text-5xl cursor-pointer"
onClick={() => {
navigate('/trainees');
}}
>
X
+
</h1>
</div>
<div className="flex flex-col gap-4">
Expand Down
3 changes: 1 addition & 2 deletions src/pages/AdminTraineeDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,8 @@ function AdminTraineeDashboard() {
<div className="font-sans text-sm font-bold text-center dark:text-white dark:bg-dark-bg">
<div className="bg-[#4aa5be] h-[150px]">
<img
className="absolute top-[80px] left-[40px] border-4 border-white font-sans"
className=" relative top-[50px] left-[20px] border-4 border-white font-sans"
style={{
margin: '0 auto',
borderRadius: '50%',
marginBottom: '20px',
width: '150px',
Expand Down

0 comments on commit b0c877d

Please sign in to comment.