Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9f2dcc0

Browse files
committed
chore: lint
1 parentbbaa587 commit9f2dcc0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎components/create-style-context.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const createStyleContext = <R extends StyleRecipe>(recipe: R) => {
3535
Component:T,
3636
slot?:StyleSlot<R>,
3737
):ComponentVariants<T,R>=>{
38-
constStyledComponent=forwardRef((props:ComponentProps<T>,ref)=>{
38+
constStyledComponent=forwardRef<T,ComponentProps<T>>((props,ref)=>{
3939
const[variantProps,otherProps]=recipe.splitVariantProps(props);
4040
constslotStyles=recipe(variantProps)asStyleSlotRecipe<R>;
4141
return(
@@ -56,7 +56,7 @@ export const createStyleContext = <R extends StyleRecipe>(recipe: R) => {
5656
slot?:StyleSlot<R>,
5757
):T=>{
5858
if(!slot)returnComponent;
59-
constStyledComponent=forwardRef((props:ComponentProps<T>,ref)=>{
59+
constStyledComponent=forwardRef<T,ComponentProps<T>>((props,ref)=>{
6060
constslotStyles=useContext(StyleContext);
6161
returncreateElement(Component,{
6262
...props,

‎src/inspect-api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,8 @@ export class InspectAPI {
749749
// This is chrome, property will be a CSS property name here
750750
isNaN(propertyasany)&&property.startsWith("--")
751751
?true
752-
:rule.style.hasOwnProperty(property)&&rule.style[property]
752+
:rule.style.hasOwnProperty(property)&&
753+
rule.style[propertyasnever]
753754
){
754755
constimportant=rule.style.getPropertyPriority(property);
755756
styles[property]=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp