Skip to content

Commit 9173b8b

Browse files
author
Owen Evans
committed
Merged in fix/design_fixes (pull request #131)
High: Design teaks before testing! (small) Approved-by: Kevin Borrill
2 parents 4b2fbc6 + af0c084 commit 9173b8b

File tree

8 files changed

+36
-21
lines changed

8 files changed

+36
-21
lines changed

src/components/modals/UnsavedChanges.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@ const UnsavedChanges: FC<IProps> = props => {
2222
{ name: "common.leave.page", variant: "secondary", onClick: leaveCallBack }
2323
]}
2424
>
25-
<div className="c-unsaved-changes-modal">
26-
<p>
27-
<FormattedMessage id="common.unsaved.changes.desc.1" />
28-
</p>
29-
<p>
30-
<FormattedMessage id="common.unsaved.changes.desc.2" />
31-
</p>
32-
</div>
25+
<p>
26+
<FormattedMessage id="common.unsaved.changes.desc.1" />
27+
</p>
28+
<p>
29+
<FormattedMessage id="common.unsaved.changes.desc.2" />
30+
</p>
3331
</Modal>
3432
);
3533
};

src/components/ui/DataTable/DataTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const DataTable = <T extends { [key: string]: string }>(props: IProps<T>) => {
5151
<ContextMenu
5252
toggleClassName="c-data-table__action-toggle"
5353
align="end"
54-
offsetY={8}
54+
offsetY={5}
5555
menuItems={rowActions.map(({ onClick = () => {}, href, value, ...menuItem }) => ({
5656
onClick: e => onClick(row, e.value),
5757
href: typeof href === "function" ? href(row, value) : href,

src/locales/en.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,12 @@
177177
"teams.monitors": "{num, plural, one {# Monitor} other {# Monitors}}:",
178178
"teams.change.member.to.manager": "Change Member to Manager",
179179
"teams.change.member.to.monitor": "Change Member to Monitor",
180+
"teams.change.member.to.manager.body": "PLACEHOLDER teams.change.member.to.manager.body",
181+
"teams.change.member.to.monitor.body": "PLACEHOLDER teams.change.member.to.monitor.body",
180182
"teams.change.member.success": "Member Updated",
181183
"teams.change.member.error": "Unable to update Member",
182184
"teams.remove.member": "Remove Team Member",
185+
"teams.remove.body": "PLACEHOLDER teams.remove.body",
183186
"teams.remove.member.success": "Member Removed",
184187
"teams.remove.member.error": "Unable to remove Member",
185188
"teams.member.invalid": "Could not find Team Member",
@@ -199,6 +202,7 @@
199202
"teams.edit.save": "Save Team",
200203
"teams.edit.success": "Team updated",
201204
"teams.edit.error": "Unable to Edit Team",
205+
"teams.delete.body": "PLACEHOLDER teams.delete.body",
202206
"teams.delete.success": "Team Deleted",
203207
"teams.delete.error": "Unable to delete Team",
204208
"teams.teamName": "Team name",

src/pages/teams-detail/actions/DeleteTeam.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useHistory } from "react-router-dom";
44
import { teamService } from "services/teams";
55
import { toastr } from "react-redux-toastr";
66
import Loader from "components/ui/Loader";
7-
import { useIntl } from "react-intl";
7+
import { FormattedMessage, useIntl } from "react-intl";
88
import { TErrorResponse } from "../../../constants/api";
99

1010
interface IProps {
@@ -51,6 +51,9 @@ const DeleteTeam: FC<IProps> = props => {
5151
]}
5252
>
5353
<Loader isLoading={isDeleting} />
54+
<p>
55+
<FormattedMessage id="teams.delete.body" />
56+
</p>
5457
</Modal>
5558
);
5659
};

src/pages/teams-detail/actions/EditTeamMember.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { TParams as TTeamDetailParams } from "../TeamDetail";
55
import { useHistory, useParams } from "react-router-dom";
66
import { teamService } from "services/teams";
77
import { toastr } from "react-redux-toastr";
8-
import { useIntl } from "react-intl";
8+
import { FormattedMessage, useIntl } from "react-intl";
99
import { useAppDispatch, useAppSelector } from "hooks/useRedux";
1010
import { getTeamMembers } from "modules/gfwTeams";
1111
import { TErrorResponse } from "constants/api";
@@ -75,6 +75,9 @@ const EditMemberRoleModal: FC<IProps> = props => {
7575
]}
7676
>
7777
<Loader isLoading={isSave} />
78+
<p>
79+
<FormattedMessage id={`teams.change.member.to.${memberRole}.body`} />
80+
</p>
7881
</Modal>
7982
);
8083
};

src/pages/teams-detail/actions/RemoveTeamMember.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { getTeamMembers } from "modules/gfwTeams";
88
import { toastr } from "react-redux-toastr";
99
import { TErrorResponse } from "constants/api";
1010
import { useAppDispatch, useAppSelector } from "hooks/useRedux";
11-
import { useIntl } from "react-intl";
11+
import { FormattedMessage, useIntl } from "react-intl";
1212

1313
type TParams = TTeamDetailParams & {
1414
memberId: string;
@@ -70,6 +70,9 @@ const RemoveTeamMemberModal: FC<IProps> = props => {
7070
]}
7171
>
7272
<Loader isLoading={isRemoving} />
73+
<p>
74+
<FormattedMessage id="teams.remove.body" />
75+
</p>
7376
</Modal>
7477
);
7578
};

src/styles/components/_c-modal-dialog.scss

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ $c-modal-transition-duration: 300ms;
6060
font-weight: 400;
6161
font-size: 24px;
6262
line-height: 36px;
63+
color: $neutral-700;
6364

6465
display: flex;
6566
justify-content: space-between;
@@ -72,6 +73,13 @@ $c-modal-transition-duration: 300ms;
7273
padding-bottom: 32px;
7374
border-bottom: 2px solid $neutral-400;
7475
overflow-y: auto;
76+
77+
p {
78+
color: $neutral-700;
79+
font-size: 18px;
80+
line-height: 24px;
81+
margin-bottom: 24px;
82+
}
7583
}
7684

7785
&__actions {
@@ -81,12 +89,3 @@ $c-modal-transition-duration: 300ms;
8189
padding: 40px 60px;
8290
}
8391
}
84-
85-
.c-unsaved-changes-modal {
86-
p {
87-
color: $neutral-700;
88-
font-size: 18px;
89-
line-height: 24px;
90-
margin-bottom: 24px;
91-
}
92-
}

src/styles/components/_c-modal-form.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
.c-modal-form {
22
.c-input {
33
justify-content: space-between;
4+
5+
&:not(:last-child) {
6+
margin-bottom: 40px;
7+
}
8+
49
&__input-wrapper {
510
flex: 0 1 50%;
611
}

0 commit comments

Comments
 (0)