From 0a00a961ad8f34ebb8eba5ec6ed2070ed3156dd0 Mon Sep 17 00:00:00 2001 From: danilych Date: Sun, 11 Feb 2024 14:29:21 +0100 Subject: [PATCH] feat(create-course): change cover for adding media --- app/routes/my-account.courses.tsx | 2 +- app/routes/my-account.my-courses.tsx | 2 +- app/widgets/create-course-form.tsx | 4 ++-- assets/images/add-image-cover.png | Bin 1624 -> 3882 bytes assets/images/add-video-cover.png | Bin 0 -> 3840 bytes assets/images/index.ts | 1 + 6 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 assets/images/add-video-cover.png diff --git a/app/routes/my-account.courses.tsx b/app/routes/my-account.courses.tsx index 7203977..6b989a4 100644 --- a/app/routes/my-account.courses.tsx +++ b/app/routes/my-account.courses.tsx @@ -1,4 +1,4 @@ -import { ThunkDispatch } from '@reduxjs/toolkit' +import type { ThunkDispatch } from '@reduxjs/toolkit' import { type V2_MetaFunction } from '@remix-run/node' import { Spinner } from 'flowbite-react' import { useEffect, useState } from 'react' diff --git a/app/routes/my-account.my-courses.tsx b/app/routes/my-account.my-courses.tsx index ef3db10..7dbe3fc 100644 --- a/app/routes/my-account.my-courses.tsx +++ b/app/routes/my-account.my-courses.tsx @@ -1,4 +1,4 @@ -import { ThunkDispatch } from '@reduxjs/toolkit' +import type { ThunkDispatch } from '@reduxjs/toolkit' import { type V2_MetaFunction } from '@remix-run/node' import { Link } from '@remix-run/react' import { AddCourseCard } from 'assets/images' diff --git a/app/widgets/create-course-form.tsx b/app/widgets/create-course-form.tsx index 66146bc..45835ab 100644 --- a/app/widgets/create-course-form.tsx +++ b/app/widgets/create-course-form.tsx @@ -1,4 +1,4 @@ -import { AddImageCover } from 'assets/images' +import { AddImageCover, AddVideoCover } from 'assets/images' import { useRef, useState } from 'react' import { FilledButton, @@ -155,7 +155,7 @@ export function CreateCourseForm() { /> diff --git a/assets/images/add-image-cover.png b/assets/images/add-image-cover.png index e20264c5d497bb200211f0e7a4ca55a03574aaa3..b53ce52f31aef96ca47c2a61f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>1sjgQray%;Or zoa_kv0#Zj?8O?*;p;wy=uxpC^h@%J?8mZrHnZMDPc6xbAjEty^Tj^I|M9JO8tP|^L0U)&S5d!Kh%T*nwVy}YdGKajUMT1EI;4X6cmH$pD3kC{ z4TcxiWXqlS(&}MebSoNOxY!~5OXl2bkSznGDt6fNswPKgTnm@=Mx0p@1MWEp};|5`T5dx z1_ss>o-U3d6}R5pI_T-_DB||;zb1!XOUVL-N0)T&>@L<0OAsqdVw|=>R>Le&)l6Xi z5r;|AP7e-xa~7YwekgH<_4Jbuo`2hQWy#Oe$$WEbrb?Aro;-0gdu8V7z>n`1U)d4( z@qN(ebw(C?j6Us+Zx^y$IKSz8jMI+u^Vnq;eP?T*nf81o%SNwB@0PJ_oS|Z=o47~a zQa^FcR(AM=I141a=zo93Rl1-c&4VPs3`ex?&s)-A3h%3d!6|5CJJ>Acz7H(H!{qh3Ahbx?mS mU-64K$C$6ptJ+)bWhS<&bH|hH*UJPzk?-m1=d#Wzp$Pyu_Up+2 diff --git a/assets/images/add-video-cover.png b/assets/images/add-video-cover.png new file mode 100644 index 0000000000000000000000000000000000000000..29611c8f19c3fecc4c29455a591f6cac6b1c97a5 GIT binary patch literal 3840 zcmdT{do#q)&knw+uPIA^Y!c3f3<^ygM#iq zOLup-fZ_A`D=RBZCUa(HW@Kb!eSLjlVPR`)i^JjYc)Yo}Il&|>7He{HlFQ}x_4SR7 zjkPpcLItz$4s&&K11XN&{Zw=gvDg@Od~fm9zkomzc6L@L+@l8OSoTiuw55)BsW^2@ z4)cH6amuFAq){c7$ZNsTsnIpho&ApzSv^EfHW%W*l6zS zfI2OBk4gRrf%T_Npe}$#$HS?W&Wh(7XXI*Pr6>ej=1`+j&|gN{XoN)Uqi}6|pi3N}|+4_7&9G3gFi9_G6GQPV{uiN#dTXh|Gl0-iJpsEl& zsFSeANbxpJ$PX$3Qzjml0U&gkJi>+@rwtbQk1C!>d-0pw7t{~QnL&XY38t0yi~MX? zT-zoDL9MHPJAC7-BqR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