Skip to content

Commit

Permalink
[@mantine/core] Rating: Fix code style for RatingItem
Browse files Browse the repository at this point in the history
  • Loading branch information
m074554n committed Sep 28, 2023
1 parent baaa02a commit 7115e91
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import {MantineSize, BoxProps, ElementProps, Box, useDirection} from '../../../core';
import { MantineSize, BoxProps, ElementProps, Box, useDirection } from '../../../core';
import { StarSymbol } from '../StarSymbol/StarSymbol';
import { useRatingContext } from '../Rating.context';

Expand Down Expand Up @@ -69,7 +69,9 @@ export function RatingItem({
'--rating-symbol-clip-path':
fractionValue === 1
? undefined
: (dir === 'ltr' ? `inset(0 ${active ? 100 - fractionValue * 100 : 100}% 0 0)` : `inset(0 0 0 ${active ? 100 - fractionValue * 100 : 100}% )`),
: dir === 'ltr'
? `inset(0 ${active ? 100 - fractionValue * 100 : 100}% 0 0)`
: `inset(0 0 0 ${active ? 100 - fractionValue * 100 : 100}% )`,
}}
>
{full
Expand Down

0 comments on commit 7115e91

Please sign in to comment.