-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bdb760e
commit 09c4595
Showing
8 changed files
with
789 additions
and
611 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 20 additions & 10 deletions
30
frontend/src/app/components/users/profile/UserOpenInsureRating.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,31 @@ | ||
import React from "react"; | ||
import { Progress } from "antd"; | ||
import { Col, Flex, Progress, Row } from "antd"; | ||
import { User } from "../../../../redux/reducers/types/commonTypes"; | ||
import colors from "../../../constants/colors"; | ||
import { Typography } from "antd"; | ||
|
||
const { Title } = Typography; | ||
|
||
export default function UserOpenInsureRating({ user }: { user: User }) { | ||
return ( | ||
<div> | ||
<Progress | ||
type="dashboard" | ||
percent={99} | ||
strokeColor={{ "0%": colors.good, "100%": colors.lightGood }} | ||
/> | ||
const trustworthinessScore = 99; | ||
|
||
<Title level={4}>trustworthy score</Title> | ||
</div> | ||
return ( | ||
<> | ||
<Flex> | ||
<Progress | ||
type="dashboard" | ||
percent={99} | ||
strokeColor={{ | ||
"0%": colors.good, | ||
"100%": colors.lightGood, | ||
}} | ||
/> | ||
</Flex> | ||
<Flex> | ||
<Col> | ||
<Title level={4}>trustworthy score</Title> | ||
</Col> | ||
</Flex> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
pods/migrations/0022_user_linkedin_url_user_twitter_url.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 4.2.6 on 2023-10-29 19:31 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("pods", "0021_badge_userbadge_badge_owners"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="user", | ||
name="linkedin_url", | ||
field=models.URLField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="user", | ||
name="twitter_url", | ||
field=models.URLField(blank=True, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters