Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,36 +1,29 @@
.quick-link-ul-list {
list-style: none;
padding: 0;
grid-template-columns: repeat(auto-fill, minmax(min(40ch, 100%), 1fr));
grid-template-columns: repeat(auto-fit, minmax(min(20ch, 100%), 1fr));
display: grid;
gap: calc(1rem);
}

.quick-link-list {
background-color: var(--link-button-color);
color: var(--app-text-color);
border-radius: 8px;
}

.quick-link-button {
text-transform: capitalize !important;
font-size: 16px !important;
color: var(--app-text-color) !important;
padding: calc(0.5rem * 2) !important;
height: 6rem;
height: 10rem;
width: 100%;
justify-content: start !important;
}

.quick-link-icon {
width: 1em;
height: 1em;
flex-shrink: 0;
filter: var(--svg-color);
object-fit: contain;
width: 3rem;
height: 3rem;
}

.quick-link-button-span {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Button } from '@mui/material';
import { makeStyles } from '@mui/styles';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this import statement up

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

import './WssQuickCreate.css';

// WssQuickCreate is one of the few components that does NOT have getPConnect.
Expand All @@ -9,8 +10,18 @@ interface WssQuickCreateProps {
actions?: any[];
}

const useStyles = makeStyles(theme => ({
quickLinkList: {
backgroundColor: theme.palette.mode === 'dark' ? 'var(--app-background-color)' : 'var(--link-button-color)',
color: 'var(--app-text-color)',
borderRadius: '16px',
border: '1px solid var(--app-primary-color)'
}
}));

export default function WssQuickCreate(props: WssQuickCreateProps) {
const { heading, actions } = props;
const classes = useStyles();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a line break before return statement

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated


return (
<div>
Expand All @@ -21,7 +32,7 @@ export default function WssQuickCreate(props: WssQuickCreateProps) {
{actions &&
actions.map(element => {
return (
<li className='quick-link-list' key={element.label}>
<li className={classes.quickLinkList} key={element.label}>
<Button className='quick-link-button' onClick={element.onClick}>
<span className='quick-link-button-span'>
{element.icon && <img className='quick-link-icon' src={element.icon} />}
Expand Down