Skip to content

Commit

Permalink
Organized imports
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Sep 21, 2023
1 parent fccc0ac commit 22ab694
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions welcome/src/components/User.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React from "react";
import "./User.scss";
import {highestAuthority} from "../utils/UserRole";
import I18n from "../locale/I18n";
import {Card, CardType} from "@surfnet/sds";
import {isEmpty} from "../utils/Utils";
import {providerInfo} from "../utils/Manage";
import {RoleCard} from "./RoleCard";
Expand Down
6 changes: 2 additions & 4 deletions welcome/src/pages/Proceed.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ import I18n from "../locale/I18n";
import "./Proceed.scss";
import "../styles/circle.scss";
import DOMPurify from "dompurify";
import {Button, Card, CardType, Loader, Toaster, ToasterType} from "@surfnet/sds";
import {Loader, Toaster, ToasterType} from "@surfnet/sds";
import {useAppStore} from "../stores/AppStore";
import {isEmpty, splitListSemantically} from "../utils/Utils";
import {organisationName} from "../utils/Manage";
import Logo from "../components/Logo";
import {getParameterByName} from "../utils/QueryParameters";
import {invitationByHash} from "../api";
import {login} from "../utils/Login";
import {MoreLessText} from "../components/MoreLessText";
import {RoleCard} from "../components/RoleCard";
import {User} from "../components/User";

Expand All @@ -24,7 +22,7 @@ export const Proceed = () => {

useEffect(() => {
if (isEmpty(user)) {
login(config);
login(config);
} else if (isEmpty(invitationMeta)) {
const hashParam = getParameterByName("hash", window.location.search);
invitationByHash(hashParam)
Expand Down
4 changes: 2 additions & 2 deletions welcome/src/pages/Profile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useState} from "react";
import React from "react";
import I18n from "../locale/I18n";
import "./Profile.scss";
import {Toaster, ToasterType, Tooltip} from "@surfnet/sds";
Expand Down Expand Up @@ -32,7 +32,7 @@ export const Profile = () => {
<div>
<span className={"info"}
dangerouslySetInnerHTML={{__html: DOMPurify.sanitize(I18n.t("profile.info"))}}/>
<Tooltip tip={ I18n.t("profile.tooltipApps")}/>
<Tooltip tip={I18n.t("profile.tooltipApps")}/>
</div>

<Toaster toasterType={ToasterType.Info}
Expand Down

0 comments on commit 22ab694

Please sign in to comment.