@magmamath/students-features 0.5.5 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/dist/commonjs/features/celebrations/components/ParticleBatch.js.map +1 -1
  2. package/dist/commonjs/features/celebrations/components/Spark.js.map +1 -1
  3. package/dist/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js.map +1 -1
  4. package/dist/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.js.map +1 -1
  5. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js +42 -21
  6. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
  7. package/dist/commonjs/features/endOfAssignment/ui/SparkIcon.js.map +1 -1
  8. package/dist/commonjs/features/endOfAssignment/ui/ThumbUpIcon.js.map +1 -1
  9. package/dist/commonjs/index.js +0 -12
  10. package/dist/commonjs/index.js.map +1 -1
  11. package/dist/commonjs/shared/icons/Halloween.js.map +1 -1
  12. package/dist/commonjs/shared/icons/MessageBubbleIcon.js.map +1 -1
  13. package/dist/commonjs/shared/icons/Pi.js.map +1 -1
  14. package/dist/commonjs/shared/icons/Star.js.map +1 -1
  15. package/dist/commonjs/shared/icons/Valentine.js.map +1 -1
  16. package/dist/commonjs/shared/icons/Winter.js.map +1 -1
  17. package/dist/commonjs/shared/icons/XCloseIcon.js.map +1 -1
  18. package/dist/module/features/celebrations/components/ParticleBatch.js.map +1 -1
  19. package/dist/module/features/celebrations/components/Spark.js.map +1 -1
  20. package/dist/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js.map +1 -1
  21. package/dist/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.js.map +1 -1
  22. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js +43 -22
  23. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
  24. package/dist/module/features/endOfAssignment/ui/SparkIcon.js.map +1 -1
  25. package/dist/module/features/endOfAssignment/ui/ThumbUpIcon.js.map +1 -1
  26. package/dist/module/index.js +0 -1
  27. package/dist/module/index.js.map +1 -1
  28. package/dist/module/shared/icons/Halloween.js.map +1 -1
  29. package/dist/module/shared/icons/MessageBubbleIcon.js.map +1 -1
  30. package/dist/module/shared/icons/Pi.js.map +1 -1
  31. package/dist/module/shared/icons/Star.js.map +1 -1
  32. package/dist/module/shared/icons/Valentine.js.map +1 -1
  33. package/dist/module/shared/icons/Winter.js.map +1 -1
  34. package/dist/module/shared/icons/XCloseIcon.js.map +1 -1
  35. package/dist/typescript/commonjs/features/celebrations/components/ParticleBatch.d.ts +1 -1
  36. package/dist/typescript/commonjs/features/celebrations/components/ParticleBatch.d.ts.map +1 -1
  37. package/dist/typescript/commonjs/features/celebrations/components/Spark.d.ts +1 -1
  38. package/dist/typescript/commonjs/features/celebrations/components/Spark.d.ts.map +1 -1
  39. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts +1 -1
  40. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts.map +1 -1
  41. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts +1 -1
  42. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts.map +1 -1
  43. package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
  44. package/dist/typescript/commonjs/features/endOfAssignment/ui/SparkIcon.d.ts +1 -1
  45. package/dist/typescript/commonjs/features/endOfAssignment/ui/SparkIcon.d.ts.map +1 -1
  46. package/dist/typescript/commonjs/features/endOfAssignment/ui/ThumbUpIcon.d.ts +1 -1
  47. package/dist/typescript/commonjs/features/endOfAssignment/ui/ThumbUpIcon.d.ts.map +1 -1
  48. package/dist/typescript/commonjs/index.d.ts +0 -1
  49. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  50. package/dist/typescript/commonjs/shared/icons/Halloween.d.ts +1 -1
  51. package/dist/typescript/commonjs/shared/icons/Halloween.d.ts.map +1 -1
  52. package/dist/typescript/commonjs/shared/icons/MessageBubbleIcon.d.ts +1 -1
  53. package/dist/typescript/commonjs/shared/icons/MessageBubbleIcon.d.ts.map +1 -1
  54. package/dist/typescript/commonjs/shared/icons/Pi.d.ts +1 -1
  55. package/dist/typescript/commonjs/shared/icons/Pi.d.ts.map +1 -1
  56. package/dist/typescript/commonjs/shared/icons/Star.d.ts +1 -1
  57. package/dist/typescript/commonjs/shared/icons/Star.d.ts.map +1 -1
  58. package/dist/typescript/commonjs/shared/icons/Valentine.d.ts +1 -1
  59. package/dist/typescript/commonjs/shared/icons/Valentine.d.ts.map +1 -1
  60. package/dist/typescript/commonjs/shared/icons/Winter.d.ts +1 -1
  61. package/dist/typescript/commonjs/shared/icons/Winter.d.ts.map +1 -1
  62. package/dist/typescript/commonjs/shared/icons/XCloseIcon.d.ts +1 -1
  63. package/dist/typescript/commonjs/shared/icons/XCloseIcon.d.ts.map +1 -1
  64. package/dist/typescript/module/features/celebrations/components/ParticleBatch.d.ts +1 -1
  65. package/dist/typescript/module/features/celebrations/components/ParticleBatch.d.ts.map +1 -1
  66. package/dist/typescript/module/features/celebrations/components/Spark.d.ts +1 -1
  67. package/dist/typescript/module/features/celebrations/components/Spark.d.ts.map +1 -1
  68. package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts +1 -1
  69. package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts.map +1 -1
  70. package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts +1 -1
  71. package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts.map +1 -1
  72. package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
  73. package/dist/typescript/module/features/endOfAssignment/ui/SparkIcon.d.ts +1 -1
  74. package/dist/typescript/module/features/endOfAssignment/ui/SparkIcon.d.ts.map +1 -1
  75. package/dist/typescript/module/features/endOfAssignment/ui/ThumbUpIcon.d.ts +1 -1
  76. package/dist/typescript/module/features/endOfAssignment/ui/ThumbUpIcon.d.ts.map +1 -1
  77. package/dist/typescript/module/index.d.ts +0 -1
  78. package/dist/typescript/module/index.d.ts.map +1 -1
  79. package/dist/typescript/module/shared/icons/Halloween.d.ts +1 -1
  80. package/dist/typescript/module/shared/icons/Halloween.d.ts.map +1 -1
  81. package/dist/typescript/module/shared/icons/MessageBubbleIcon.d.ts +1 -1
  82. package/dist/typescript/module/shared/icons/MessageBubbleIcon.d.ts.map +1 -1
  83. package/dist/typescript/module/shared/icons/Pi.d.ts +1 -1
  84. package/dist/typescript/module/shared/icons/Pi.d.ts.map +1 -1
  85. package/dist/typescript/module/shared/icons/Star.d.ts +1 -1
  86. package/dist/typescript/module/shared/icons/Star.d.ts.map +1 -1
  87. package/dist/typescript/module/shared/icons/Valentine.d.ts +1 -1
  88. package/dist/typescript/module/shared/icons/Valentine.d.ts.map +1 -1
  89. package/dist/typescript/module/shared/icons/Winter.d.ts +1 -1
  90. package/dist/typescript/module/shared/icons/Winter.d.ts.map +1 -1
  91. package/dist/typescript/module/shared/icons/XCloseIcon.d.ts +1 -1
  92. package/dist/typescript/module/shared/icons/XCloseIcon.d.ts.map +1 -1
  93. package/package.json +2 -2
  94. package/src/features/celebrations/components/ParticleBatch.tsx +1 -1
  95. package/src/features/celebrations/components/Spark.tsx +4 -4
  96. package/src/features/endOfAssignment/components/Modal/assets/SunrisingIcon.tsx +74 -74
  97. package/src/features/endOfAssignment/components/Modal/assets/TrophyIcon.tsx +24 -24
  98. package/src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx +52 -25
  99. package/src/features/endOfAssignment/ui/SparkIcon.tsx +2 -1
  100. package/src/features/endOfAssignment/ui/ThumbUpIcon.tsx +2 -2
  101. package/src/index.ts +0 -1
  102. package/src/shared/icons/Halloween.tsx +2 -2
  103. package/src/shared/icons/MessageBubbleIcon.tsx +5 -6
  104. package/src/shared/icons/Pi.tsx +1 -2
  105. package/src/shared/icons/Star.tsx +1 -2
  106. package/src/shared/icons/Valentine.tsx +1 -2
  107. package/src/shared/icons/Winter.tsx +2 -2
  108. package/src/shared/icons/XCloseIcon.tsx +3 -4
  109. package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js +0 -52
  110. package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js.map +0 -1
  111. package/dist/commonjs/features/formulaSheet/components/FormulaSheetModal.js +0 -64
  112. package/dist/commonjs/features/formulaSheet/components/FormulaSheetModal.js.map +0 -1
  113. package/dist/commonjs/features/formulaSheet/index.js +0 -20
  114. package/dist/commonjs/features/formulaSheet/index.js.map +0 -1
  115. package/dist/commonjs/features/formulaSheet/model/api.model.js +0 -15
  116. package/dist/commonjs/features/formulaSheet/model/api.model.js.map +0 -1
  117. package/dist/commonjs/features/formulaSheet/model/file.model.js +0 -19
  118. package/dist/commonjs/features/formulaSheet/model/file.model.js.map +0 -1
  119. package/dist/commonjs/features/formulaSheet/model/modal.model.js +0 -15
  120. package/dist/commonjs/features/formulaSheet/model/modal.model.js.map +0 -1
  121. package/dist/commonjs/features/formulaSheet/model/model.js +0 -35
  122. package/dist/commonjs/features/formulaSheet/model/model.js.map +0 -1
  123. package/dist/module/features/formulaSheet/components/FormulaSheet.js +0 -46
  124. package/dist/module/features/formulaSheet/components/FormulaSheet.js.map +0 -1
  125. package/dist/module/features/formulaSheet/components/FormulaSheetModal.js +0 -58
  126. package/dist/module/features/formulaSheet/components/FormulaSheetModal.js.map +0 -1
  127. package/dist/module/features/formulaSheet/index.js +0 -5
  128. package/dist/module/features/formulaSheet/index.js.map +0 -1
  129. package/dist/module/features/formulaSheet/model/api.model.js +0 -10
  130. package/dist/module/features/formulaSheet/model/api.model.js.map +0 -1
  131. package/dist/module/features/formulaSheet/model/file.model.js +0 -14
  132. package/dist/module/features/formulaSheet/model/file.model.js.map +0 -1
  133. package/dist/module/features/formulaSheet/model/modal.model.js +0 -10
  134. package/dist/module/features/formulaSheet/model/modal.model.js.map +0 -1
  135. package/dist/module/features/formulaSheet/model/model.js +0 -30
  136. package/dist/module/features/formulaSheet/model/model.js.map +0 -1
  137. package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheet.d.ts +0 -15
  138. package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheet.d.ts.map +0 -1
  139. package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheetModal.d.ts +0 -10
  140. package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheetModal.d.ts.map +0 -1
  141. package/dist/typescript/commonjs/features/formulaSheet/index.d.ts +0 -3
  142. package/dist/typescript/commonjs/features/formulaSheet/index.d.ts.map +0 -1
  143. package/dist/typescript/commonjs/features/formulaSheet/model/api.model.d.ts +0 -9
  144. package/dist/typescript/commonjs/features/formulaSheet/model/api.model.d.ts.map +0 -1
  145. package/dist/typescript/commonjs/features/formulaSheet/model/file.model.d.ts +0 -14
  146. package/dist/typescript/commonjs/features/formulaSheet/model/file.model.d.ts.map +0 -1
  147. package/dist/typescript/commonjs/features/formulaSheet/model/modal.model.d.ts +0 -7
  148. package/dist/typescript/commonjs/features/formulaSheet/model/modal.model.d.ts.map +0 -1
  149. package/dist/typescript/commonjs/features/formulaSheet/model/model.d.ts +0 -14
  150. package/dist/typescript/commonjs/features/formulaSheet/model/model.d.ts.map +0 -1
  151. package/dist/typescript/module/features/formulaSheet/components/FormulaSheet.d.ts +0 -15
  152. package/dist/typescript/module/features/formulaSheet/components/FormulaSheet.d.ts.map +0 -1
  153. package/dist/typescript/module/features/formulaSheet/components/FormulaSheetModal.d.ts +0 -10
  154. package/dist/typescript/module/features/formulaSheet/components/FormulaSheetModal.d.ts.map +0 -1
  155. package/dist/typescript/module/features/formulaSheet/index.d.ts +0 -3
  156. package/dist/typescript/module/features/formulaSheet/index.d.ts.map +0 -1
  157. package/dist/typescript/module/features/formulaSheet/model/api.model.d.ts +0 -9
  158. package/dist/typescript/module/features/formulaSheet/model/api.model.d.ts.map +0 -1
  159. package/dist/typescript/module/features/formulaSheet/model/file.model.d.ts +0 -14
  160. package/dist/typescript/module/features/formulaSheet/model/file.model.d.ts.map +0 -1
  161. package/dist/typescript/module/features/formulaSheet/model/modal.model.d.ts +0 -7
  162. package/dist/typescript/module/features/formulaSheet/model/modal.model.d.ts.map +0 -1
  163. package/dist/typescript/module/features/formulaSheet/model/model.d.ts +0 -14
  164. package/dist/typescript/module/features/formulaSheet/model/model.d.ts.map +0 -1
  165. package/src/features/formulaSheet/components/FormulaSheet.tsx +0 -74
  166. package/src/features/formulaSheet/components/FormulaSheetModal.tsx +0 -64
  167. package/src/features/formulaSheet/index.ts +0 -2
  168. package/src/features/formulaSheet/model/api.model.ts +0 -13
  169. package/src/features/formulaSheet/model/file.model.ts +0 -18
  170. package/src/features/formulaSheet/model/modal.model.ts +0 -10
  171. package/src/features/formulaSheet/model/model.ts +0 -31
@@ -1,194 +1,194 @@
1
1
  import * as React from 'react'
2
+ import { IconProps } from '@magmamath/react-native-ui'
2
3
  import Svg, { G, Path, Defs, LinearGradient, Stop } from 'react-native-svg'
3
- import { IconProps } from '../../../../../shared/icons/icon.types'
4
4
 
5
5
  export const SunrisingIcon = (props: IconProps) => {
6
6
  const height = (props.size ?? 0) * 0.606
7
7
 
8
8
  return (
9
- <Svg width={props.size} height={height} viewBox="0 0 909 551" fill="none" {...props}>
9
+ <Svg width={props.size} height={height} viewBox='0 0 909 551' fill='none' {...props}>
10
10
  <G opacity={0.1}>
11
11
  <Path
12
- d="M164.04-598.854a893.984 893.984 0 01222.319 28.085L164.04 295.106v-893.96z"
13
- fill="url(#paint0_linear_3505_1308)"
12
+ d='M164.04-598.854a893.984 893.984 0 01222.319 28.085L164.04 295.106v-893.96z'
13
+ fill='url(#paint0_linear_3505_1308)'
14
14
  />
15
15
  <Path
16
- d="M-282.94-479.086a893.954 893.954 0 01206.577-86.837L164.04 295.106l-446.98-774.192z"
17
- fill="url(#paint1_linear_3505_1308)"
16
+ d='M-282.94-479.086a893.954 893.954 0 01206.577-86.837L164.04 295.106l-446.98-774.192z'
17
+ fill='url(#paint1_linear_3505_1308)'
18
18
  />
19
19
  <Path
20
- d="M-610.152-151.874A893.997 893.997 0 01-474.67-330.365l638.71 625.471-774.192-446.98z"
21
- fill="url(#paint2_linear_3505_1308)"
20
+ d='M-610.152-151.874A893.997 893.997 0 01-474.67-330.365l638.71 625.471-774.192-446.98z'
21
+ fill='url(#paint2_linear_3505_1308)'
22
22
  />
23
23
  <Path
24
- d="M-729.92 295.106a893.938 893.938 0 0128.086-222.319L164.04 295.106h-893.96z"
25
- fill="url(#paint3_linear_3505_1308)"
24
+ d='M-729.92 295.106a893.938 893.938 0 0128.086-222.319L164.04 295.106h-893.96z'
25
+ fill='url(#paint3_linear_3505_1308)'
26
26
  />
27
27
  <Path
28
- d="M-610.152 742.086a893.994 893.994 0 01-86.837-206.577L164.04 295.106l-774.192 446.98z"
29
- fill="url(#paint4_linear_3505_1308)"
28
+ d='M-610.152 742.086a893.994 893.994 0 01-86.837-206.577L164.04 295.106l-774.192 446.98z'
29
+ fill='url(#paint4_linear_3505_1308)'
30
30
  />
31
31
  <Path
32
- d="M-282.94 1069.3a894.157 894.157 0 01-178.491-135.484l625.471-638.71-446.98 774.194z"
33
- fill="url(#paint5_linear_3505_1308)"
32
+ d='M-282.94 1069.3a894.157 894.157 0 01-178.491-135.484l625.471-638.71-446.98 774.194z'
33
+ fill='url(#paint5_linear_3505_1308)'
34
34
  />
35
35
  <Path
36
- d="M611.02-479.086a893.96 893.96 0 01178.491 135.482L164.04 295.106l446.98-774.192z"
37
- fill="url(#paint6_linear_3505_1308)"
36
+ d='M611.02-479.086a893.96 893.96 0 01178.491 135.482L164.04 295.106l446.98-774.192z'
37
+ fill='url(#paint6_linear_3505_1308)'
38
38
  />
39
39
  <Path
40
- d="M938.232-151.874a894.096 894.096 0 0186.838 206.577L164.04 295.106l774.192-446.98z"
41
- fill="url(#paint7_linear_3505_1308)"
40
+ d='M938.232-151.874a894.096 894.096 0 0186.838 206.577L164.04 295.106l774.192-446.98z'
41
+ fill='url(#paint7_linear_3505_1308)'
42
42
  />
43
43
  <Path
44
- d="M1058 295.106c0 74.991-9.44 149.684-28.09 222.319L164.04 295.106H1058z"
45
- fill="url(#paint8_linear_3505_1308)"
44
+ d='M1058 295.106c0 74.991-9.44 149.684-28.09 222.319L164.04 295.106H1058z'
45
+ fill='url(#paint8_linear_3505_1308)'
46
46
  />
47
47
  <Path
48
- d="M938.232 742.086A893.96 893.96 0 01802.75 920.577L164.04 295.106l774.192 446.98z"
49
- fill="url(#paint9_linear_3505_1308)"
48
+ d='M938.232 742.086A893.96 893.96 0 01802.75 920.577L164.04 295.106l774.192 446.98z'
49
+ fill='url(#paint9_linear_3505_1308)'
50
50
  />
51
51
  <Path
52
- d="M611.02 1069.3a893.885 893.885 0 01-206.577 86.83L164.04 295.106 611.02 1069.3z"
53
- fill="url(#paint10_linear_3505_1308)"
52
+ d='M611.02 1069.3a893.885 893.885 0 01-206.577 86.83L164.04 295.106 611.02 1069.3z'
53
+ fill='url(#paint10_linear_3505_1308)'
54
54
  />
55
55
  <Path
56
- d="M164.04 1189.07a893.941 893.941 0 01-222.319-28.09L164.04 295.106v893.964z"
57
- fill="url(#paint11_linear_3505_1308)"
56
+ d='M164.04 1189.07a893.941 893.941 0 01-222.319-28.09L164.04 295.106v893.964z'
57
+ fill='url(#paint11_linear_3505_1308)'
58
58
  />
59
59
  </G>
60
60
  <Defs>
61
61
  <LinearGradient
62
- id="paint0_linear_3505_1308"
62
+ id='paint0_linear_3505_1308'
63
63
  x1={164.04}
64
64
  y1={383.036}
65
65
  x2={930.076}
66
66
  y2={383.036}
67
- gradientUnits="userSpaceOnUse"
67
+ gradientUnits='userSpaceOnUse'
68
68
  >
69
- <Stop stopColor="#FF245F" />
70
- <Stop offset={1} stopColor="#FF7917" stopOpacity={0} />
69
+ <Stop stopColor='#FF245F' />
70
+ <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
71
71
  </LinearGradient>
72
72
  <LinearGradient
73
- id="paint1_linear_3505_1308"
73
+ id='paint1_linear_3505_1308'
74
74
  x1={164.04}
75
75
  y1={383.036}
76
76
  x2={930.076}
77
77
  y2={383.036}
78
- gradientUnits="userSpaceOnUse"
78
+ gradientUnits='userSpaceOnUse'
79
79
  >
80
- <Stop stopColor="#FF245F" />
81
- <Stop offset={1} stopColor="#FF7917" stopOpacity={0} />
80
+ <Stop stopColor='#FF245F' />
81
+ <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
82
82
  </LinearGradient>
83
83
  <LinearGradient
84
- id="paint2_linear_3505_1308"
84
+ id='paint2_linear_3505_1308'
85
85
  x1={164.04}
86
86
  y1={383.036}
87
87
  x2={930.076}
88
88
  y2={383.036}
89
- gradientUnits="userSpaceOnUse"
89
+ gradientUnits='userSpaceOnUse'
90
90
  >
91
- <Stop stopColor="#FF245F" />
92
- <Stop offset={1} stopColor="#FF7917" stopOpacity={0} />
91
+ <Stop stopColor='#FF245F' />
92
+ <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
93
93
  </LinearGradient>
94
94
  <LinearGradient
95
- id="paint3_linear_3505_1308"
95
+ id='paint3_linear_3505_1308'
96
96
  x1={164.04}
97
97
  y1={383.036}
98
98
  x2={930.076}
99
99
  y2={383.036}
100
- gradientUnits="userSpaceOnUse"
100
+ gradientUnits='userSpaceOnUse'
101
101
  >
102
- <Stop stopColor="#FF245F" />
103
- <Stop offset={1} stopColor="#FF7917" stopOpacity={0} />
102
+ <Stop stopColor='#FF245F' />
103
+ <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
104
104
  </LinearGradient>
105
105
  <LinearGradient
106
- id="paint4_linear_3505_1308"
106
+ id='paint4_linear_3505_1308'
107
107
  x1={164.04}
108
108
  y1={383.036}
109
109
  x2={930.076}
110
110
  y2={383.036}
111
- gradientUnits="userSpaceOnUse"
111
+ gradientUnits='userSpaceOnUse'
112
112
  >
113
- <Stop stopColor="#FF245F" />
114
- <Stop offset={1} stopColor="#FF7917" stopOpacity={0} />
113
+ <Stop stopColor='#FF245F' />
114
+ <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
115
115
  </LinearGradient>
116
116
  <LinearGradient
117
- id="paint5_linear_3505_1308"
117
+ id='paint5_linear_3505_1308'
118
118
  x1={164.04}
119
119
  y1={383.036}
120
120
  x2={930.076}
121
121
  y2={383.036}
122
- gradientUnits="userSpaceOnUse"
122
+ gradientUnits='userSpaceOnUse'
123
123
  >
124
- <Stop stopColor="#FF245F" />
125
- <Stop offset={1} stopColor="#FF7917" stopOpacity={0} />
124
+ <Stop stopColor='#FF245F' />
125
+ <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
126
126
  </LinearGradient>
127
127
  <LinearGradient
128
- id="paint6_linear_3505_1308"
128
+ id='paint6_linear_3505_1308'
129
129
  x1={164.04}
130
130
  y1={383.036}
131
131
  x2={930.076}
132
132
  y2={383.036}
133
- gradientUnits="userSpaceOnUse"
133
+ gradientUnits='userSpaceOnUse'
134
134
  >
135
- <Stop stopColor="#FF245F" />
136
- <Stop offset={1} stopColor="#FF7917" stopOpacity={0} />
135
+ <Stop stopColor='#FF245F' />
136
+ <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
137
137
  </LinearGradient>
138
138
  <LinearGradient
139
- id="paint7_linear_3505_1308"
139
+ id='paint7_linear_3505_1308'
140
140
  x1={164.04}
141
141
  y1={383.036}
142
142
  x2={930.076}
143
143
  y2={383.036}
144
- gradientUnits="userSpaceOnUse"
144
+ gradientUnits='userSpaceOnUse'
145
145
  >
146
- <Stop stopColor="#FF245F" />
147
- <Stop offset={1} stopColor="#FF7917" stopOpacity={0} />
146
+ <Stop stopColor='#FF245F' />
147
+ <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
148
148
  </LinearGradient>
149
149
  <LinearGradient
150
- id="paint8_linear_3505_1308"
150
+ id='paint8_linear_3505_1308'
151
151
  x1={164.04}
152
152
  y1={383.036}
153
153
  x2={930.076}
154
154
  y2={383.036}
155
- gradientUnits="userSpaceOnUse"
155
+ gradientUnits='userSpaceOnUse'
156
156
  >
157
- <Stop stopColor="#FF245F" />
158
- <Stop offset={1} stopColor="#FF7917" stopOpacity={0} />
157
+ <Stop stopColor='#FF245F' />
158
+ <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
159
159
  </LinearGradient>
160
160
  <LinearGradient
161
- id="paint9_linear_3505_1308"
161
+ id='paint9_linear_3505_1308'
162
162
  x1={164.04}
163
163
  y1={383.036}
164
164
  x2={930.076}
165
165
  y2={383.036}
166
- gradientUnits="userSpaceOnUse"
166
+ gradientUnits='userSpaceOnUse'
167
167
  >
168
- <Stop stopColor="#FF245F" />
169
- <Stop offset={1} stopColor="#FF7917" stopOpacity={0} />
168
+ <Stop stopColor='#FF245F' />
169
+ <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
170
170
  </LinearGradient>
171
171
  <LinearGradient
172
- id="paint10_linear_3505_1308"
172
+ id='paint10_linear_3505_1308'
173
173
  x1={164.04}
174
174
  y1={383.036}
175
175
  x2={930.076}
176
176
  y2={383.036}
177
- gradientUnits="userSpaceOnUse"
177
+ gradientUnits='userSpaceOnUse'
178
178
  >
179
- <Stop stopColor="#FF245F" />
180
- <Stop offset={1} stopColor="#FF7917" stopOpacity={0} />
179
+ <Stop stopColor='#FF245F' />
180
+ <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
181
181
  </LinearGradient>
182
182
  <LinearGradient
183
- id="paint11_linear_3505_1308"
183
+ id='paint11_linear_3505_1308'
184
184
  x1={164.04}
185
185
  y1={383.036}
186
186
  x2={930.076}
187
187
  y2={383.036}
188
- gradientUnits="userSpaceOnUse"
188
+ gradientUnits='userSpaceOnUse'
189
189
  >
190
- <Stop stopColor="#FF245F" />
191
- <Stop offset={1} stopColor="#FF7917" stopOpacity={0} />
190
+ <Stop stopColor='#FF245F' />
191
+ <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
192
192
  </LinearGradient>
193
193
  </Defs>
194
194
  </Svg>
@@ -1,61 +1,61 @@
1
+ import { IconProps } from '@magmamath/react-native-ui'
1
2
  import * as React from 'react'
2
3
  import Svg, { Path } from 'react-native-svg'
3
- import { IconProps } from '../../../../../shared/icons/icon.types'
4
4
 
5
5
  export const TrophyIcon = (props: IconProps) => {
6
6
  const height = (props.size ?? 0) * 0.982
7
7
 
8
8
  return (
9
- <Svg width={props.size} height={height} viewBox="0 0 466 458" fill="none" {...props}>
9
+ <Svg width={props.size} height={height} viewBox='0 0 466 458' fill='none' {...props}>
10
10
  <Path
11
- d="M258.454 244.45l-5.731 32.767 16.384 2.86c8.047 1.407 15.796 2.106 23.222 2.106 15.697.011 29.985-3.137 42.766-9.389 6.728-3.292 13.025-7.438 18.9-12.449 44.672-38.12 50.247-115.859 49.604-158.813-.288-18.467-9.466-35.848-24.575-46.49-9.355-6.606-20.23-10.209-31.348-10.575a57.996 57.996 0 00-17.935 2.206c-14.355 4.09-26.36 13.38-33.875 25.994l-32.379-14.332L250.03 88.75l39.162 17.326c6.274 2.771 13.247 2.916 19.632.388 6.374-2.516 11.373-7.382 14.055-13.7a24.56 24.56 0 0115.974-14.112c2.993-.853 6.052-1.13 9.056-.853a24.578 24.578 0 0111.961 4.422c6.44 4.534 10.353 11.95 10.475 19.82 1.164 76.841-18.822 112.224-32.024 127.144-2.195 2.494-4.213 4.412-5.909 5.864-14.632 12.47-33.465 16.483-57.586 12.271l-16.372-2.871zM37.623 282.187c7.429 0 15.173-.703 23.223-2.111l16.379-2.864-5.73-32.757-16.378 2.865c-24.126 4.221-42.953.202-57.575-12.274-11.858-10.119-39.295-43.336-37.936-133.006.119-7.871 4.036-15.28 10.476-19.82a24.601 24.601 0 0121.015-3.57A24.606 24.606 0 017.075 92.764c2.683 6.318 7.675 11.186 14.058 13.709 6.384 2.522 13.355 2.38 19.63-.396l39.152-17.329-13.46-30.41-32.37 14.328C26.57 60.055 14.57 50.762.213 46.67c-16.936-4.828-34.901-1.777-49.293 8.369-15.102 10.647-24.286 28.03-24.565 46.498-.652 42.947 4.926 120.686 49.6 158.806 17.036 14.535 37.71 21.844 61.668 21.844z"
12
- fill="#FFD690"
11
+ d='M258.454 244.45l-5.731 32.767 16.384 2.86c8.047 1.407 15.796 2.106 23.222 2.106 15.697.011 29.985-3.137 42.766-9.389 6.728-3.292 13.025-7.438 18.9-12.449 44.672-38.12 50.247-115.859 49.604-158.813-.288-18.467-9.466-35.848-24.575-46.49-9.355-6.606-20.23-10.209-31.348-10.575a57.996 57.996 0 00-17.935 2.206c-14.355 4.09-26.36 13.38-33.875 25.994l-32.379-14.332L250.03 88.75l39.162 17.326c6.274 2.771 13.247 2.916 19.632.388 6.374-2.516 11.373-7.382 14.055-13.7a24.56 24.56 0 0115.974-14.112c2.993-.853 6.052-1.13 9.056-.853a24.578 24.578 0 0111.961 4.422c6.44 4.534 10.353 11.95 10.475 19.82 1.164 76.841-18.822 112.224-32.024 127.144-2.195 2.494-4.213 4.412-5.909 5.864-14.632 12.47-33.465 16.483-57.586 12.271l-16.372-2.871zM37.623 282.187c7.429 0 15.173-.703 23.223-2.111l16.379-2.864-5.73-32.757-16.378 2.865c-24.126 4.221-42.953.202-57.575-12.274-11.858-10.119-39.295-43.336-37.936-133.006.119-7.871 4.036-15.28 10.476-19.82a24.601 24.601 0 0121.015-3.57A24.606 24.606 0 017.075 92.764c2.683 6.318 7.675 11.186 14.058 13.709 6.384 2.522 13.355 2.38 19.63-.396l39.152-17.329-13.46-30.41-32.37 14.328C26.57 60.055 14.57 50.762.213 46.67c-16.936-4.828-34.901-1.777-49.293 8.369-15.102 10.647-24.286 28.03-24.565 46.498-.652 42.947 4.926 120.686 49.6 158.806 17.036 14.535 37.71 21.844 61.668 21.844z'
12
+ fill='#FFD690'
13
13
  />
14
14
  <Path
15
15
  opacity={0.1}
16
- d="M335.095 272.795c6.728-3.293 13.025-7.438 18.9-12.449 44.672-38.121 50.247-115.859 49.604-158.813-.288-18.467-9.466-35.848-24.575-46.49-9.355-6.606-20.23-10.209-31.348-10.575 3.326 3.691 14.3 18.057.233 33.332a24.578 24.578 0 0111.961 4.423c6.44 4.534 10.353 11.95 10.475 19.82 1.164 76.84-18.822 112.223-32.024 127.144 0 0 21.659 24.497-3.226 43.608z"
17
- fill="#D25B00"
16
+ d='M335.095 272.795c6.728-3.293 13.025-7.438 18.9-12.449 44.672-38.121 50.247-115.859 49.604-158.813-.288-18.467-9.466-35.848-24.575-46.49-9.355-6.606-20.23-10.209-31.348-10.575 3.326 3.691 14.3 18.057.233 33.332a24.578 24.578 0 0111.961 4.423c6.44 4.534 10.353 11.95 10.475 19.82 1.164 76.84-18.822 112.223-32.024 127.144 0 0 21.659 24.497-3.226 43.608z'
17
+ fill='#D25B00'
18
18
  />
19
19
  <Path
20
- d="M26.153 202.82L46.65 26.089a11.505 11.505 0 0111.429-10.18h213.797a11.504 11.504 0 0111.428 10.18l20.495 176.731c4.463 38.483-10.944 76.387-39.056 96.086l-8.179 5.73c-15.466 10.838-32.135 18.807-49.434 23.744-11.86 3.386-19.699 16.816-18.043 31.209l5.7 49.527h-59.619l5.7-49.527c1.656-14.393-6.182-27.825-18.043-31.209-17.299-4.937-33.967-12.905-49.434-23.744l-8.178-5.73c-28.115-19.699-43.522-57.604-39.059-96.086z"
21
- fill="#FFD690"
20
+ d='M26.153 202.82L46.65 26.089a11.505 11.505 0 0111.429-10.18h213.797a11.504 11.504 0 0111.428 10.18l20.495 176.731c4.463 38.483-10.944 76.387-39.056 96.086l-8.179 5.73c-15.466 10.838-32.135 18.807-49.434 23.744-11.86 3.386-19.699 16.816-18.043 31.209l5.7 49.527h-59.619l5.7-49.527c1.656-14.393-6.182-27.825-18.043-31.209-17.299-4.937-33.967-12.905-49.434-23.744l-8.178-5.73c-28.115-19.699-43.522-57.604-39.059-96.086z'
21
+ fill='#FFD690'
22
22
  />
23
23
  <Path
24
24
  opacity={0.1}
25
- d="M169.03 359.583l1.752 36.868h22.546l-4.245-36.868c-1.652-14.388 6.185-27.823 18.046-31.203 17.293-4.933 33.964-12.903 49.428-23.744l8.18-5.731c28.112-19.698 43.52-57.597 39.063-96.084L283.299 26.086a11.505 11.505 0 00-11.429-10.18h-50.531l12.193 186.914c2.505 38.487-6.152 76.386-21.959 96.084l-4.6 5.731c-8.702 10.841-18.068 18.811-27.801 23.743-6.661 3.382-11.073 16.817-10.142 31.205z"
26
- fill="#D25B00"
25
+ d='M169.03 359.583l1.752 36.868h22.546l-4.245-36.868c-1.652-14.388 6.185-27.823 18.046-31.203 17.293-4.933 33.964-12.903 49.428-23.744l8.18-5.731c28.112-19.698 43.52-57.597 39.063-96.084L283.299 26.086a11.505 11.505 0 00-11.429-10.18h-50.531l12.193 186.914c2.505 38.487-6.152 76.386-21.959 96.084l-4.6 5.731c-8.702 10.841-18.068 18.811-27.801 23.743-6.661 3.382-11.073 16.817-10.142 31.205z'
26
+ fill='#D25B00'
27
27
  />
28
28
  <Path
29
- d="M63.166 437.528l203.607-4.774v-6.731c0-16.335-13.295-29.576-29.63-29.576H92.742c-16.335 0-29.576 13.241-29.576 29.576v11.505z"
30
- fill="#FFD690"
29
+ d='M63.166 437.528l203.607-4.774v-6.731c0-16.335-13.295-29.576-29.63-29.576H92.742c-16.335 0-29.576 13.241-29.576 29.576v11.505z'
30
+ fill='#FFD690'
31
31
  />
32
32
  <Path
33
33
  opacity={0.1}
34
- d="M171.477 396.447c16.328 0 29.574 13.247 29.574 29.575v7.907l65.722-.857v-7.05c0-16.328-13.246-29.575-29.574-29.575h-65.722z"
35
- fill="#D25B00"
34
+ d='M171.477 396.447c16.328 0 29.574 13.247 29.574 29.575v7.907l65.722-.857v-7.05c0-16.328-13.246-29.575-29.574-29.575h-65.722z'
35
+ fill='#D25B00'
36
36
  />
37
37
  <Path
38
- d="M209.405 432.82c15.086 0 27.324 12.238 27.324 27.336v100.01h42.122c8.43 0 15.264-6.834 15.264-15.264v-84.746c0-15.097-12.239-27.336-27.335-27.336h-57.375z"
39
- fill="#2488BB"
38
+ d='M209.405 432.82c15.086 0 27.324 12.238 27.324 27.336v100.01h42.122c8.43 0 15.264-6.834 15.264-15.264v-84.746c0-15.097-12.239-27.336-27.335-27.336h-57.375z'
39
+ fill='#2488BB'
40
40
  />
41
41
  <Path
42
42
  opacity={0.5}
43
- d="M35.846 543.408a8.835 8.835 0 1017.668 0v-88.343c0-6.569 1.263-10.538 2.59-13.251 1.325-2.713 5.889-7.362 13.25-8.834H66.41c-5.89 0-13.567 0-20.614 5.889-6.683 5.586-9.95 13.376-9.95 22.086v82.453z"
44
- fill="#fff"
43
+ d='M35.846 543.408a8.835 8.835 0 1017.668 0v-88.343c0-6.569 1.263-10.538 2.59-13.251 1.325-2.713 5.889-7.362 13.25-8.834H66.41c-5.89 0-13.567 0-20.614 5.889-6.683 5.586-9.95 13.376-9.95 22.086v82.453z'
44
+ fill='#fff'
45
45
  />
46
46
  <Path
47
- d="M35.837 460.156v84.489c0 8.57 6.912 15.518 15.483 15.518H278.85c8.43 0 15.264-6.833 15.264-15.263v-84.744c0-15.097-12.239-27.336-27.335-27.336H63.173c-15.097 0-27.336 12.239-27.336 27.336z"
48
- fill="#AAD5EF"
47
+ d='M35.837 460.156v84.489c0 8.57 6.912 15.518 15.483 15.518H278.85c8.43 0 15.264-6.833 15.264-15.263v-84.744c0-15.097-12.239-27.336-27.335-27.336H63.173c-15.097 0-27.336 12.239-27.336 27.336z'
48
+ fill='#AAD5EF'
49
49
  />
50
50
  <Path
51
51
  opacity={0.1}
52
- d="M208.151 432.762c15.309 0 27.727 12.418 27.727 27.739l.004 33.137h42.744c8.555 0 15.489-6.934 15.489-15.489l-.003-17.648c0-15.32-12.419-27.739-27.739-27.739h-58.222z"
53
- fill="#D25B00"
52
+ d='M208.151 432.762c15.309 0 27.727 12.418 27.727 27.739l.004 33.137h42.744c8.555 0 15.489-6.934 15.489-15.489l-.003-17.648c0-15.32-12.419-27.739-27.739-27.739h-58.222z'
53
+ fill='#D25B00'
54
54
  />
55
55
  <Path
56
56
  opacity={0.3}
57
- d="M73.782 17.1c-1.8.654-4.135 2.151-6.083 4.197-2.014 2.118-2.78 3.928-2.901 4.848-3.966 30.145-7.066 56.336-10.696 87.003-3.112 26.288-9.844 72.335-12.788 92.948-2.944 20.613-2.944 23.442-2.944 35.337 0 22.086 10.364 42.197 10.364 42.197-4.634-5.04-14.077-23.056-15.589-26.678-5.247-12.574-9.599-33.753-7.343-51.809 4.73-37.865 7.788-67.529 10.907-93.864 5.03-41.445 4.877-42.092 8.977-77.441 1.785-15.392 1.08-18.069 13.976-18.069h18.25c-1.451.417-2.836.86-4.13 1.33zM35.846 543.249a8.834 8.834 0 008.834 8.834 8.834 8.834 0 008.834-8.834v-88.343c0-6.57 1.263-10.538 2.59-13.251 1.325-2.713 5.889-7.362 13.25-8.835 0 0-1.158-.003-2.94-.003-13.712 0-13.571.004-20.618 5.893-6.683 5.586-9.95 13.376-9.95 22.086v82.453z"
58
- fill="#fff"
57
+ d='M73.782 17.1c-1.8.654-4.135 2.151-6.083 4.197-2.014 2.118-2.78 3.928-2.901 4.848-3.966 30.145-7.066 56.336-10.696 87.003-3.112 26.288-9.844 72.335-12.788 92.948-2.944 20.613-2.944 23.442-2.944 35.337 0 22.086 10.364 42.197 10.364 42.197-4.634-5.04-14.077-23.056-15.589-26.678-5.247-12.574-9.599-33.753-7.343-51.809 4.73-37.865 7.788-67.529 10.907-93.864 5.03-41.445 4.877-42.092 8.977-77.441 1.785-15.392 1.08-18.069 13.976-18.069h18.25c-1.451.417-2.836.86-4.13 1.33zM35.846 543.249a8.834 8.834 0 008.834 8.834 8.834 8.834 0 008.834-8.834v-88.343c0-6.57 1.263-10.538 2.59-13.251 1.325-2.713 5.889-7.362 13.25-8.835 0 0-1.158-.003-2.94-.003-13.712 0-13.571.004-20.618 5.893-6.683 5.586-9.95 13.376-9.95 22.086v82.453z'
58
+ fill='#fff'
59
59
  />
60
60
  </Svg>
61
61
  )
@@ -5,6 +5,7 @@ import { useUnit } from 'effector-react'
5
5
  import {
6
6
  Button,
7
7
  ButtonColor,
8
+ ButtonSize,
8
9
  ButtonVariant,
9
10
  COLORS,
10
11
  SPACING,
@@ -13,7 +14,6 @@ import {
13
14
 
14
15
  import { EOAModalContentProps } from '../../types'
15
16
  import { NoAnswerContent } from './NoAnswerContent'
16
- import { PracticeButton } from '../../ui/PracticeButton'
17
17
  import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
18
18
  import { KeyboardKeys } from '../../../../lib/constants'
19
19
 
@@ -22,17 +22,49 @@ export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalConten
22
22
 
23
23
  const { stats, isExam, user } = popUpData ?? {}
24
24
 
25
- const buttonColorScheme = isExam ? ButtonColor.YELLOW : ButtonColor.BLUE
26
- const practiceButtonVisible = user?.practiceButtonVisible && (!isExam || !!user?.practiceMode)
25
+ function getButtons() {
26
+ const buttons = [
27
+ {
28
+ text: textContent.leftButtonText ?? '',
29
+ colorScheme: isExam ? ButtonColor.PURPLE : ButtonColor.BLUE,
30
+ onPress: () => model.hidePopUpAndLeave(),
31
+ },
32
+ ]
27
33
 
28
- const handlePrimaryButtonPress = () => {
29
- isExam ? onPracticePress?.() : model.goToFirstProblemPressed()
30
- model.hidePopUp()
34
+ if (!isExam) {
35
+ buttons.push({
36
+ text: textContent.rightButtonText ?? '',
37
+ colorScheme: ButtonColor.BLUE,
38
+ onPress: () => {
39
+ model.goToFirstProblemPressed()
40
+ model.hidePopUp()
41
+ },
42
+ })
43
+ return buttons
44
+ }
45
+
46
+ const isPracticeAvailable = !!user?.practiceMode && user?.practiceButtonVisible
47
+
48
+ if (isPracticeAvailable) {
49
+ buttons.push({
50
+ text: textContent.rightButtonText ?? '',
51
+ colorScheme: ButtonColor.YELLOW,
52
+ onPress: () => {
53
+ onPracticePress?.()
54
+ model.hidePopUp()
55
+ },
56
+ })
57
+ }
58
+
59
+ return buttons
31
60
  }
32
61
 
62
+ const buttons = getButtons()
63
+
33
64
  useKeyBoard((event) => {
34
65
  if (event.key === KeyboardKeys.ENTER) {
35
- practiceButtonVisible ? handlePrimaryButtonPress() : model.hidePopUpAndLeave()
66
+ const primaryButton = buttons.at(-1)
67
+ primaryButton?.onPress()
36
68
  }
37
69
  })
38
70
 
@@ -44,7 +76,7 @@ export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalConten
44
76
  {textContent.title}
45
77
  </Typography>
46
78
  )}
47
- {!!textContent.subtitle && practiceButtonVisible && (
79
+ {!!textContent.subtitle && buttons.length === 2 && (
48
80
  <Typography variant="h4" style={styles.subtitle}>
49
81
  {textContent.subtitle}
50
82
  </Typography>
@@ -55,23 +87,18 @@ export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalConten
55
87
  problemsAmount={stats?.problemsAmount ?? 0}
56
88
  />
57
89
  <View style={styles.buttonsContainer}>
58
- <Button
59
- variant={practiceButtonVisible ? ButtonVariant.TERTIARY : ButtonVariant.PRIMARY}
60
- size="large"
61
- colorScheme={popUpData?.isExam ? ButtonColor.PURPLE : ButtonColor.BLUE}
62
- style={{ text: { textTransform: 'uppercase' } }}
63
- onPress={model.hidePopUpAndLeave}
64
- >
65
- {textContent.leftButtonText ?? ''}
66
- </Button>
67
-
68
- {practiceButtonVisible && (
69
- <PracticeButton
70
- onPress={handlePrimaryButtonPress}
71
- text={textContent.rightButtonText}
72
- colorScheme={buttonColorScheme}
73
- />
74
- )}
90
+ {buttons.map((button, index) => (
91
+ <Button
92
+ key={index}
93
+ variant={index === buttons.length - 1 ? ButtonVariant.PRIMARY : ButtonVariant.TERTIARY}
94
+ size={ButtonSize.LARGE}
95
+ colorScheme={button.colorScheme}
96
+ style={{ text: { textTransform: 'uppercase' } }}
97
+ onPress={button.onPress}
98
+ >
99
+ {button.text}
100
+ </Button>
101
+ ))}
75
102
  </View>
76
103
  </View>
77
104
  )
@@ -1,6 +1,7 @@
1
1
  import React from 'react'
2
+
3
+ import { IconProps } from '@magmamath/react-native-ui'
2
4
  import Svg, { Path } from 'react-native-svg'
3
- import { IconProps } from '../../../shared/icons/icon.types'
4
5
 
5
6
  export const SparkIcon = ({ size = 12, color }: IconProps) => {
6
7
  return (
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
- import { COLORS } from '@magmamath/react-native-ui'
2
+
3
+ import { COLORS, IconProps } from '@magmamath/react-native-ui'
3
4
  import Svg, { Path } from 'react-native-svg'
4
- import { IconProps } from '../../../shared/icons/icon.types'
5
5
 
6
6
  export const ThumbUpIcon = ({ size = 57, color = COLORS.NEUTRAL_1 }: IconProps) => {
7
7
  return (
package/src/index.ts CHANGED
@@ -4,4 +4,3 @@ export * from './features/chatbot'
4
4
  export * from './features/feedback'
5
5
  export * from './features/celebrations'
6
6
  export * from './features/endOfAssignment'
7
- export * from './features/formulaSheet'
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import Svg, { ClipPath, Defs, G, Path } from 'react-native-svg'
3
- import { COLORS } from '@magmamath/react-native-ui'
4
- import { IconProps } from './icon.types'
3
+
4
+ import { COLORS, IconProps } from '@magmamath/react-native-ui'
5
5
 
6
6
  function Halloween({ size = 57, color = COLORS.NEUTRAL_8 }: IconProps) {
7
7
  return (
@@ -1,16 +1,15 @@
1
1
  import React from 'react'
2
2
  import Svg, { Path } from 'react-native-svg'
3
- import { COLORS } from '@magmamath/react-native-ui'
4
- import { IconProps } from './icon.types'
3
+ import { IconProps, COLORS } from '@magmamath/react-native-ui'
5
4
 
6
5
  export const MessageBubbleIcon = ({ size = 26, color = COLORS.NEUTRAL_1 }: IconProps) => {
7
6
  return (
8
- <Svg width={size} height={size} viewBox="0 0 26 26" fill="none">
7
+ <Svg width={size} height={size} viewBox='0 0 26 26' fill='none'>
9
8
  <Path
10
- d="M1.46731 10.0594C0.934026 14.231 2.94959 17.0124 4.72827 18.403C5.15473 20.0717 4.90596 21.8796 4.72827 22.5749C6.86227 22.1577 8.40099 20.946 8.93496 20.2507C12.6702 21.2937 23.0923 21.063 24.4129 14.7527C25.5097 9.51166 22.2158 5.12788 15.3416 3.80165C7.2255 2.23582 2.01279 5.79234 1.46731 10.0594Z"
9
+ d='M1.46731 10.0594C0.934026 14.231 2.94959 17.0124 4.72827 18.403C5.15473 20.0717 4.90596 21.8796 4.72827 22.5749C6.86227 22.1577 8.40099 20.946 8.93496 20.2507C12.6702 21.2937 23.0923 21.063 24.4129 14.7527C25.5097 9.51166 22.2158 5.12788 15.3416 3.80165C7.2255 2.23582 2.01279 5.79234 1.46731 10.0594Z'
11
10
  stroke={color}
12
- strokeWidth="2"
13
- strokeLinejoin="round"
11
+ strokeWidth='2'
12
+ strokeLinejoin='round'
14
13
  />
15
14
  </Svg>
16
15
  )
@@ -1,7 +1,6 @@
1
1
  import React from 'react'
2
2
  import Svg, { Path } from 'react-native-svg'
3
- import { COLORS } from '@magmamath/react-native-ui'
4
- import { IconProps } from './icon.types'
3
+ import { COLORS, IconProps } from '@magmamath/react-native-ui'
5
4
 
6
5
  function Pi({ size = 57, color = COLORS.NEUTRAL_8 }: IconProps) {
7
6
  return (
@@ -1,7 +1,6 @@
1
1
  import React from 'react'
2
2
  import Svg, { Path } from 'react-native-svg'
3
- import { COLORS } from '@magmamath/react-native-ui'
4
- import { IconProps } from './icon.types'
3
+ import { COLORS, IconProps } from '@magmamath/react-native-ui'
5
4
 
6
5
  function Star({ size = 57, color = COLORS.NEUTRAL_8 }: IconProps) {
7
6
  return (
@@ -1,7 +1,6 @@
1
1
  import React from 'react'
2
2
  import Svg, { Path } from 'react-native-svg'
3
- import { COLORS } from '@magmamath/react-native-ui'
4
- import { IconProps } from './icon.types'
3
+ import { COLORS, IconProps } from '@magmamath/react-native-ui'
5
4
 
6
5
  function Valentine({ size = 57, color = COLORS.NEUTRAL_8 }: IconProps) {
7
6
  return (
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import Svg, { Path } from 'react-native-svg'
3
- import { COLORS } from '@magmamath/react-native-ui'
4
- import { IconProps } from './icon.types'
3
+
4
+ import { COLORS, IconProps } from '@magmamath/react-native-ui'
5
5
 
6
6
  function Winter({ size = 50, color = COLORS.NEUTRAL_8 }: IconProps) {
7
7
  return (
@@ -1,13 +1,12 @@
1
1
  import React from 'react'
2
2
  import Svg, { Path } from 'react-native-svg'
3
- import { COLORS } from '@magmamath/react-native-ui'
4
- import { IconProps } from './icon.types'
3
+ import { IconProps, COLORS } from '@magmamath/react-native-ui'
5
4
 
6
5
  export const XCloseIcon = ({ size = 26, color = COLORS.NEUTRAL_9 }: IconProps) => {
7
6
  return (
8
- <Svg width={size} height={size} viewBox="0 0 26 26" fill="none">
7
+ <Svg width={size} height={size} viewBox='0 0 26 26' fill='none'>
9
8
  <Path
10
- d="M4.38388 2.61612C3.89573 2.12796 3.10427 2.12796 2.61612 2.61612C2.12796 3.10427 2.12796 3.89573 2.61612 4.38388L11.2322 13L2.61612 21.6161C2.12796 22.1043 2.12796 22.8957 2.61612 23.3839C3.10427 23.872 3.89573 23.872 4.38388 23.3839L13 14.7678L21.6161 23.3839C22.1043 23.872 22.8957 23.872 23.3839 23.3839C23.872 22.8957 23.872 22.1043 23.3839 21.6161L14.7678 13L23.3839 4.38388C23.872 3.89573 23.872 3.10427 23.3839 2.61612C22.8957 2.12796 22.1043 2.12796 21.6161 2.61612L13 11.2322L4.38388 2.61612Z"
9
+ d='M4.38388 2.61612C3.89573 2.12796 3.10427 2.12796 2.61612 2.61612C2.12796 3.10427 2.12796 3.89573 2.61612 4.38388L11.2322 13L2.61612 21.6161C2.12796 22.1043 2.12796 22.8957 2.61612 23.3839C3.10427 23.872 3.89573 23.872 4.38388 23.3839L13 14.7678L21.6161 23.3839C22.1043 23.872 22.8957 23.872 23.3839 23.3839C23.872 22.8957 23.872 22.1043 23.3839 21.6161L14.7678 13L23.3839 4.38388C23.872 3.89573 23.872 3.10427 23.3839 2.61612C22.8957 2.12796 22.1043 2.12796 21.6161 2.61612L13 11.2322L4.38388 2.61612Z'
11
10
  fill={color}
12
11
  />
13
12
  </Svg>