File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,9 @@ pub fn extract_style_from_expression<'a>(
296296 . unwrap_or ( ExtractResult :: Maintain )
297297 } else {
298298 match expression {
299- Expression :: UnaryExpression ( _) | Expression :: BinaryExpression ( _) => {
299+ Expression :: UnaryExpression ( _)
300+ | Expression :: BinaryExpression ( _)
301+ | Expression :: CallExpression ( _) => {
300302 ExtractResult :: ExtractStyle ( vec ! [ ExtractStyleProp :: Static ( Dynamic (
301303 ExtractDynamicStyle :: new(
302304 name. unwrap( ) ,
@@ -553,16 +555,6 @@ pub fn extract_style_from_expression<'a>(
553555 ExtractResult :: ExtractStyle ( props)
554556 }
555557 }
556- Expression :: CallExpression ( _) => {
557- ExtractResult :: ExtractStyle ( vec ! [ ExtractStyleProp :: Static ( Dynamic (
558- ExtractDynamicStyle :: new(
559- name. unwrap( ) ,
560- level,
561- expression_to_code( expression) . as_str( ) ,
562- selector. map( |s| s. into( ) ) ,
563- ) ,
564- ) ) ] )
565- }
566558 // val if let Some(value) = get_number_by_literal_expression(val) => {}
567559 _ => ExtractResult :: Maintain ,
568560 }
You can’t perform that action at this time.
0 commit comments