Fix lint errors

This commit is contained in:
Alec LaLonde
2023-08-08 12:44:18 -06:00
parent e97688ce3f
commit 2197bf4f1c
5 changed files with 9 additions and 15 deletions

View File

@@ -133,6 +133,8 @@ export const EditAvatarImage = forwardRef<
onFileChange(evt);
}}
accept="image/*"
onFocus={() => setActive(true)}
onBlur={() => setActive(false)}
/>
</Button>
</>

View File

@@ -7,7 +7,6 @@ import {
FormHelperText,
Image,
Input,
Tooltip,
useToast,
} from '@metafam/ds';
import { Maybe, Optional } from '@metafam/utils';
@@ -39,6 +38,7 @@ export const EditBackgroundImage = forwardRef<
const toast = useToast();
const readFile = useImageReader();
const [active, setActive] = useState(false);
const [loading, setLoading] = useState(true);
const [url, setURL] = useState<Optional<string>>(
optimizedImage('backgroundImageURL', initialURL),
@@ -107,7 +107,7 @@ export const EditBackgroundImage = forwardRef<
w="full"
h="full"
border="2px solid"
borderColor={'transparent'}
borderColor={active && !url ? 'blue.400' : 'transparent'}
>
<Image
ref={ref}
@@ -177,6 +177,8 @@ export const EditBackgroundImage = forwardRef<
onFileChange(file);
}
}}
onFocus={() => setActive(true)}
onBlur={() => setActive(false)}
accept="image/*"
/>
Drag and drop an image or

View File

@@ -1,4 +1,4 @@
import { Box, Heading, Link, Prose, Text } from '@metafam/ds';
import { Box, Prose } from '@metafam/ds';
import { isSGML } from '@metafam/utils';
import { MarkdownViewer as Markdown } from 'components/MarkdownViewer';
import { QuestFragment } from 'graphql/autogen/types';

View File

@@ -1,13 +1,4 @@
import {
Box,
Button,
Flex,
Heading,
MetaButton,
Stack,
Text,
VStack,
} from '@metafam/ds';
import { Box, Button, Flex, Heading, Stack, Text } from '@metafam/ds';
import { MetaLink } from 'components/Link';
import { PlayerAvatar } from 'components/Player/PlayerAvatar';
import { Quest, QuestFragment, QuestStatus_Enum } from 'graphql/autogen/types';

View File

@@ -15,9 +15,8 @@ import {
import { httpLink, isSGML } from '@metafam/utils';
import { MarkdownViewer as Markdown } from 'components/MarkdownViewer';
import { QuestTileImage } from 'components/Quest/QuestTileImage';
import { RolesTags } from 'components/Quest/Roles';
import { SkillsTags } from 'components/Quest/Skills';
import { PlayerRole, QuestFragment, Skill } from 'graphql/autogen/types';
import { QuestFragment, Skill } from 'graphql/autogen/types';
import DefaultQuestImage from 'public/assets/QuestsDefaultImage_900x900.jpg';
import React, { PropsWithChildren } from 'react';
import { safelyParseNChakrifyHtml } from 'utils/stringHelpers';