-
Notifications
You must be signed in to change notification settings - Fork 16
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
4e4e85e
commit 617b418
Showing
14 changed files
with
217 additions
and
118 deletions.
There are no files selected for viewing
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,28 +1,29 @@ | ||
import js from '@eslint/js' | ||
import globals from 'globals' | ||
import reactHooks from 'eslint-plugin-react-hooks' | ||
import reactRefresh from 'eslint-plugin-react-refresh' | ||
import tseslint from 'typescript-eslint' | ||
import js from "@eslint/js"; | ||
import globals from "globals"; | ||
import reactHooks from "eslint-plugin-react-hooks"; | ||
import reactRefresh from "eslint-plugin-react-refresh"; | ||
import tseslint from "typescript-eslint"; | ||
|
||
export default tseslint.config( | ||
{ ignores: ['dist'] }, | ||
{ ignores: ["dist"] }, | ||
{ | ||
extends: [js.configs.recommended, ...tseslint.configs.recommended], | ||
files: ['**/*.{ts,tsx}'], | ||
files: ["**/*.{ts,tsx}"], | ||
languageOptions: { | ||
ecmaVersion: 2020, | ||
globals: globals.browser, | ||
}, | ||
plugins: { | ||
'react-hooks': reactHooks, | ||
'react-refresh': reactRefresh, | ||
"react-hooks": reactHooks, | ||
"react-refresh": reactRefresh, | ||
}, | ||
rules: { | ||
...reactHooks.configs.recommended.rules, | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
"react-refresh/only-export-components": [ | ||
"warn", | ||
{ allowConstantExport: true }, | ||
], | ||
"@typescript-eslint/no-unused-vars": "off", | ||
}, | ||
}, | ||
) | ||
} | ||
); |
69 changes: 69 additions & 0 deletions
69
services/credential-server-ui/src/components/PopupModal/PopupModal.scss
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,69 @@ | ||
.popup-modal.MuiModal-root { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
|
||
.popup-modal-container { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
width: 29.25rem; | ||
min-height: 13.25rem; | ||
padding: 1.5rem; | ||
background-color: var(--color-neutral-100); | ||
border-radius: 1.5rem; | ||
box-shadow: 0.25rem 0.25rem 1.25rem 0rem rgba(var(--text-color-rgb), 0.16); | ||
|
||
.popup-modal-header { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
margin-bottom: 0.5rem; | ||
|
||
h2 { | ||
margin: 0; | ||
} | ||
|
||
button { | ||
width: 1.5rem; | ||
height: 1.5rem; | ||
padding: 0.25rem; | ||
color: var(--text-color); | ||
|
||
&:hover, | ||
&:active { | ||
background-color: var(--color-neutral-300); | ||
} | ||
|
||
svg { | ||
width: 1.25rem; | ||
height: 1.25rem; | ||
} | ||
} | ||
} | ||
|
||
.popup-modal-body { | ||
font-weight: 500; | ||
text-align: left; | ||
margin-bottom: 1.5rem; | ||
} | ||
|
||
.popup-modal-footer { | ||
display: flex; | ||
justify-content: space-between; | ||
|
||
button { | ||
text-transform: none; | ||
padding: 0.75rem 1.25rem; | ||
border-radius: 1rem; | ||
box-shadow: none; | ||
width: 12.75rem; | ||
|
||
&:first-of-type { | ||
color: var(--text-color); | ||
background-color: var(--color-neutral-100); | ||
} | ||
} | ||
} | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
services/credential-server-ui/src/components/PopupModal/PopupModal.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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import React from "react"; | ||
import { Modal, Fade, Box, IconButton, Typography } from "@mui/material"; | ||
import { Close } from "@mui/icons-material"; | ||
import "./PopupModal.scss"; | ||
|
||
interface PopupModalProps { | ||
open: boolean; | ||
onClose: () => void; | ||
title: string; | ||
body: React.ReactNode; | ||
footer: React.ReactNode; | ||
} | ||
|
||
const PopupModal: React.FC<PopupModalProps> = ({ | ||
open, | ||
onClose, | ||
title, | ||
body, | ||
footer, | ||
}) => { | ||
return ( | ||
<Modal | ||
open={open} | ||
onClose={onClose} | ||
aria-labelledby="popup-modal-title" | ||
aria-describedby="popup-modal-description" | ||
className="popup-modal" | ||
> | ||
<Fade in={open}> | ||
<Box | ||
color="text.primary" | ||
bgcolor="background.default" | ||
className="popup-modal-container" | ||
> | ||
<div className="popup-modal-header"> | ||
<h2>{title}</h2> | ||
<IconButton | ||
size="large" | ||
aria-label="close modal" | ||
disableRipple | ||
onClick={onClose} | ||
> | ||
<Close /> | ||
</IconButton> | ||
</div> | ||
<Typography className="popup-modal-body">{body}</Typography> | ||
<div className="popup-modal-footer">{footer}</div> | ||
</Box> | ||
</Fade> | ||
</Modal> | ||
); | ||
}; | ||
|
||
export { PopupModal }; |
1 change: 1 addition & 0 deletions
1
services/credential-server-ui/src/components/PopupModal/index.ts
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 @@ | ||
export * from "./PopupModal"; |
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
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
2 changes: 1 addition & 1 deletion
2
services/credential-server-ui/src/pages/Connections/components/ConnectionsTable/helpers.ts
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
19 changes: 0 additions & 19 deletions
19
...rver-ui/src/pages/Connections/components/DeleteConnectionModal/DeleteConnectionModal.scss
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.