mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
fix lint.
This commit is contained in:
parent
2c1d4a9680
commit
aa6178224e
@ -20,7 +20,7 @@ export interface ComponentProps {
|
|||||||
|
|
||||||
const Icon: FunctionComponent<ComponentProps> = ({
|
const Icon: FunctionComponent<ComponentProps> = ({
|
||||||
icon,
|
icon,
|
||||||
size,
|
size = SizeProp.Regular,
|
||||||
}: ComponentProps): ReactElement => {
|
}: ComponentProps): ReactElement => {
|
||||||
return (
|
return (
|
||||||
<span>
|
<span>
|
||||||
|
@ -56,13 +56,15 @@ const Table: FunctionComponent<ComponentProps> = ({
|
|||||||
records.map((record: JSONObject, index: number) => {
|
records.map((record: JSONObject, index: number) => {
|
||||||
return (
|
return (
|
||||||
<tr key={index}>
|
<tr key={index}>
|
||||||
{columns.map((item: TableColumn, index: number) => {
|
{columns.map(
|
||||||
return (
|
(item: TableColumn, index: number) => {
|
||||||
<td key={index}>
|
return (
|
||||||
{record[item.key] as string}
|
<td key={index}>
|
||||||
</td>
|
{record[item.key] as string}
|
||||||
);
|
</td>
|
||||||
})}
|
);
|
||||||
|
}
|
||||||
|
)}
|
||||||
</tr>
|
</tr>
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
|
@ -9,7 +9,7 @@ $transition: all 0.2s linear;
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
outline: 1px solid darken($primaryColor, 5%);
|
outline: 1px solid darken($primaryColor, 5%);
|
||||||
border-radius: 100px;
|
border-radius: 5px;
|
||||||
|
|
||||||
& > * {
|
& > * {
|
||||||
flex: 0 0 5%;
|
flex: 0 0 5%;
|
||||||
|
@ -18,8 +18,6 @@ export interface MenuIconButtonComponentProps {
|
|||||||
export interface MenuOutlineButtonComponentProps
|
export interface MenuOutlineButtonComponentProps
|
||||||
extends MenuIconButtonComponentProps {
|
extends MenuIconButtonComponentProps {
|
||||||
text?: string;
|
text?: string;
|
||||||
className?: string;
|
|
||||||
id?: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const MenuIconButton: FunctionComponent<
|
export const MenuIconButton: FunctionComponent<
|
||||||
@ -48,12 +46,10 @@ export const MenuOutlineButton: FunctionComponent<
|
|||||||
onClick,
|
onClick,
|
||||||
showModal,
|
showModal,
|
||||||
modalContent,
|
modalContent,
|
||||||
className,
|
|
||||||
id,
|
|
||||||
}: MenuOutlineButtonComponentProps): ReactElement => {
|
}: MenuOutlineButtonComponentProps): ReactElement => {
|
||||||
return (
|
return (
|
||||||
<div className="buttonLayout">
|
<div className="buttonLayout">
|
||||||
<div className={`button ${className}`} id={id} onClick={onClick}>
|
<div className={`button`} onClick={onClick}>
|
||||||
<span>{text}</span>
|
<span>{text}</span>
|
||||||
{icon && <FontAwesomeIcon icon={icon} />}
|
{icon && <FontAwesomeIcon icon={icon} />}
|
||||||
</div>
|
</div>
|
||||||
|
@ -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 Container from 'CommonUI/src/Components/Dashboard/Container/Container/Container';
|
||||||
import Pagination from 'CommonUI/src/Components/Dashboard/Container/Container/Pagination';
|
import Pagination from 'CommonUI/src/Components/Dashboard/Container/Container/Pagination';
|
||||||
import Table from 'CommonUI/src/Components/Dashboard/Table/Table';
|
import Table from 'CommonUI/src/Components/Dashboard/Table/Table';
|
||||||
|
Loading…
Reference in New Issue
Block a user