Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kokofixcomputers committed Oct 30, 2024
1 parent 5225e6e commit 0163bd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import classNames from 'classnames';
import * as Icon from 'react-feather';
import styled from 'styled-components/macro';
import { megabytesToHuman } from '@/helpers';
import React, { useState, useEffect } from 'react';
import React from 'react';
import Spinner from '@/components/elements/Spinner';
import ContentBox from '@/components/elements/ContentBox';
import Tooltip from '@/components/elements/tooltip/Tooltip';
Expand Down Expand Up @@ -32,17 +32,14 @@ export default ({ className, titles }: RowProps) => {
const limits = ServerContext.useStoreState((state) => state.server.data!.limits);
const featureLimits = ServerContext.useStoreState((state) => state.server.data!.featureLimits);


if (!limits) return <Spinner size={'large'} centered />;

const ResourceBox = (props: BoxProps) => (
<ContentBox title={titles ? props.title : undefined}>
<Tooltip content={props.description}>
<Wrapper>
{props.icon}
<span className={'ml-2'}>
{props.toHuman ? megabytesToHuman(props.amount) : props.amount}
</span>
<span className={'ml-2'}>{props.toHuman ? megabytesToHuman(props.amount) : props.amount}</span>
{props.suffix}
</Wrapper>
</Tooltip>
Expand Down
2 changes: 0 additions & 2 deletions resources/scripts/components/server/edit/EditContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ import { Button } from '@/components/elements/button/index';
import TitledGreyBox from '@/components/elements/TitledGreyBox';
import SpinnerOverlay from '@/components/elements/SpinnerOverlay';
import ServerContentBlock from '@/components/elements/ServerContentBlock';
import ResourceBar from '@/components/elements/store/ResourceBar';
import ServerLimitationBar from '@/components/elements/server/ServerLimitationBar';


const Container = styled.div`
${tw`flex flex-wrap`};
Expand Down

0 comments on commit 0163bd3

Please sign in to comment.