Skip to content

Commit

Permalink
added relevant information on accounts page.
Browse files Browse the repository at this point in the history
  • Loading branch information
anshhhhhhh authored and anshhhhhhh committed Jan 28, 2024
1 parent 1458911 commit e92186d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,23 @@ repos:
stages: [pre-push]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
rev: v3.1.0
hooks:
- id: prettier
args: ["--ignore-path", "../.gitignore", "--write"]
files: '^(client|servers/execution/runner|servers/lib)/.*\.(ts|tsx|css|scss)$'
stages: [pre-commit]

- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.0.0-alpha.2
rev: v8.54.0
hooks:
- id: eslint
args: ["--fix"]
files: "^(client|servers/execution/runner|servers/lib)/.*"
stages: [pre-commit]

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.38.0
rev: v0.37.0
hooks:
- id: markdownlint
files: '.*\.md$'
Expand Down
30 changes: 15 additions & 15 deletions client/src/route/auth/AccountTabs.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from "react";
import TabComponent from "components/tab/TabComponent";
import { TabData } from "components/tab/subcomponents/TabRender";
import { useAuth } from "react-oidc-context";
import * as React from 'react';
import TabComponent from 'components/tab/TabComponent';
import { TabData } from 'components/tab/subcomponents/TabRender';
import { useAuth } from 'react-oidc-context';

const scope: TabData[][] = [];

Expand All @@ -12,29 +12,29 @@ function AccountTabs() {
if (groups.length === 0) {
const accountTab: TabData[] = [
{
label: "Profile",
label: 'Profile',
body: (
<>
Profile - potentially visible to other users.
<br></br>
<img
src={auth.user?.profile.picture}
style={{ height: "5%", width: "5%" }}
style={{ height: '5%', width: '5%' }}
></img>
Username is <b>{auth.user?.profile.preferred_username}</b>
<br></br>
See more details on{" "}
See more details on{' '}
<a href={auth.user?.profile.profile}>SSO OAuth provider.</a>
</>
),
},
{
label: "Settings",
label: 'Settings',
body: (
<>
Account settings - private to a user.
<br></br>
Edit the profile on{" "}
Edit the profile on{' '}
<a href={auth.user?.profile.profile}>SSO OAuth provider</a>
</>
),
Expand All @@ -45,31 +45,31 @@ function AccountTabs() {

const accountTab: TabData[] = [
{
label: "Profile",
label: 'Profile',
body: (
<>
Profile - potentially visible to other users.
<br></br>
<img
src={auth.user?.profile.picture}
style={{ height: "5%", width: "5%", borderRadius: "3%" }}
style={{ height: '5%', width: '5%', borderRadius: '3%' }}
></img>
Username is <b>{auth.user?.profile.preferred_username}</b>
<br></br>
See more details on{" "}
See more details on{' '}
<a href={auth.user?.profile.profile}>SSO OAuth provider.</a>
{auth.user?.profile.preferred_username} belongs to {groups.join(" ,")}
{auth.user?.profile.preferred_username} belongs to {groups.join(' ,')}
.
</>
),
},
{
label: "Settings",
label: 'Settings',
body: (
<>
Account settings - private to a user.
<br></br>
Edit the profile on{" "}
Edit the profile on{' '}
<a href={auth.user?.profile.profile}>SSO OAuth provider</a>
</>
),
Expand Down

0 comments on commit e92186d

Please sign in to comment.