Tatiana Inama преди 6 години
родител
ревизия
3a245d3390
променени са 4 файла, в които са добавени 233 реда и са изтрити 1 реда
  1. 1 1
      recipes/src/components/Icon/index.tsx
  2. 115 0
      recipes/src/components/Spinner/index.tsx
  3. 15 0
      recipes/src/components/Spinner/styles.scss
  4. 102 0
      recipes/src/svgs/loading.svg

+ 1 - 1
recipes/src/components/Icon/index.tsx

@@ -9,7 +9,7 @@ export type IconProps = {
   icon: string,
   className?: string,
   fill?: string,
-  width?: number,
+  width?: 'auto' | number,
   height?: number,
   material?: boolean,
 }

Файловите разлики са ограничени, защото са твърде много
+ 115 - 0
recipes/src/components/Spinner/index.tsx


+ 15 - 0
recipes/src/components/Spinner/styles.scss

@@ -0,0 +1,15 @@
+.cbk-spinner {
+  position: fixed;
+  width: 100%;
+  height: 100vh;
+  background-color: rgba(255,255,255,0.7);
+  top: 0;
+  left: 0;
+  z-index: 99;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  svg {
+    width: 15%;
+  }
+}

Файловите разлики са ограничени, защото са твърде много
+ 102 - 0
recipes/src/svgs/loading.svg