mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-07 20:44:05 +09:00
fix: eslints
This commit is contained in:
1 parent
f460004d7c
commit
c39058bc07
4 files changed
+9
-9
No files matched your search
@@ -13,8 +13,8 @@ import { type FetcherData, makeFieldError } from "~/shared/form-utils";
|
||||
|
||||
const nonEmptyString = z
|
||||
.string({
|
||||
invalid_type_error: "Can't be empty", // eslint-disable-line
|
||||
required_error: "Can't be empty", // eslint-disable-line
|
||||
invalid_type_error: "Can't be empty", // eslint-disable-line camelcase
|
||||
required_error: "Can't be empty", // eslint-disable-line camelcase
|
||||
})
|
||||
.transform((value) => value.trim())
|
||||
.refine((value) => value !== "", "Can't be empty");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { styled } from "../../stitches.config";
|
||||
|
||||
export const DEPRECATEDText = styled("div", {
|
||||
export const DeprecatedText = styled("div", {
|
||||
// Reset
|
||||
lineHeight: "1",
|
||||
margin: "0",
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import React from "react";
|
||||
import { DEPRECATEDText } from "./__DEPRECATED__/text";
|
||||
import { DeprecatedText } from "./__DEPRECATED__/text";
|
||||
import { VariantProps, CSS } from "../stitches.config";
|
||||
import merge from "lodash.merge";
|
||||
|
||||
const DEFAULT_TAG = "h1";
|
||||
|
||||
type TextSizeVariants = Pick<VariantProps<typeof DEPRECATEDText>, "size">;
|
||||
type TextSizeVariants = Pick<VariantProps<typeof DeprecatedText>, "size">;
|
||||
type HeadingSizeVariants = "1" | "2" | "3" | "4";
|
||||
type HeadingVariants = { size?: HeadingSizeVariants } & Omit<
|
||||
VariantProps<typeof DEPRECATEDText>,
|
||||
VariantProps<typeof DeprecatedText>,
|
||||
"size"
|
||||
>;
|
||||
type HeadingProps = React.ComponentProps<typeof DEFAULT_TAG> &
|
||||
@@ -41,7 +41,7 @@ export const Heading = React.forwardRef<
|
||||
};
|
||||
|
||||
return (
|
||||
<DEPRECATEDText
|
||||
<DeprecatedText
|
||||
as={DEFAULT_TAG}
|
||||
{...textProps}
|
||||
ref={forwardedRef}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { styled } from "../stitches.config";
|
||||
import { DEPRECATEDText } from "./__DEPRECATED__/text";
|
||||
import { DeprecatedText } from "./__DEPRECATED__/text";
|
||||
|
||||
export const Link = styled("a", {
|
||||
alignItems: "center",
|
||||
@@ -22,7 +22,7 @@ export const Link = styled("a", {
|
||||
outlineOffset: "2px",
|
||||
textDecorationLine: "none",
|
||||
},
|
||||
[`& ${DEPRECATEDText}`]: {
|
||||
[`& ${DeprecatedText}`]: {
|
||||
color: "inherit",
|
||||
},
|
||||
variants: {
|
||||
|
||||
Reference in new issue
Block a user