fix lint.

This commit is contained in:
Simon Larsen 2022-06-11 13:24:10 +01:00
parent 2c1d4a9680
commit aa6178224e
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
5 changed files with 18 additions and 15 deletions

View File

@ -20,7 +20,7 @@ export interface ComponentProps {
const Icon: FunctionComponent<ComponentProps> = ({
icon,
size,
size = SizeProp.Regular,
}: ComponentProps): ReactElement => {
return (
<span>

View File

@ -56,13 +56,15 @@ const Table: FunctionComponent<ComponentProps> = ({
records.map((record: JSONObject, index: number) => {
return (
<tr key={index}>
{columns.map((item: TableColumn, index: number) => {
return (
<td key={index}>
{record[item.key] as string}
</td>
);
})}
{columns.map(
(item: TableColumn, index: number) => {
return (
<td key={index}>
{record[item.key] as string}
</td>
);
}
)}
</tr>
);
})

View File

@ -9,7 +9,7 @@ $transition: all 0.2s linear;
align-items: center;
padding: 0 15px;
outline: 1px solid darken($primaryColor, 5%);
border-radius: 100px;
border-radius: 5px;
& > * {
flex: 0 0 5%;

View File

@ -18,8 +18,6 @@ export interface MenuIconButtonComponentProps {
export interface MenuOutlineButtonComponentProps
extends MenuIconButtonComponentProps {
text?: string;
className?: string;
id?: string;
}
export const MenuIconButton: FunctionComponent<
@ -48,12 +46,10 @@ export const MenuOutlineButton: FunctionComponent<
onClick,
showModal,
modalContent,
className,
id,
}: MenuOutlineButtonComponentProps): ReactElement => {
return (
<div className="buttonLayout">
<div className={`button ${className}`} id={id} onClick={onClick}>
<div className={`button`} onClick={onClick}>
<span>{text}</span>
{icon && <FontAwesomeIcon icon={icon} />}
</div>

View File

@ -1,4 +1,9 @@
import React, { FunctionComponent, MouseEventHandler, ReactElement, useState } from 'react';
import React, {
FunctionComponent,
MouseEventHandler,
ReactElement,
useState,
} from 'react';
import Container from 'CommonUI/src/Components/Dashboard/Container/Container/Container';
import Pagination from 'CommonUI/src/Components/Dashboard/Container/Container/Pagination';
import Table from 'CommonUI/src/Components/Dashboard/Table/Table';