Skip to content

Commit

Permalink
feat(create-course): change cover for adding media
Browse files Browse the repository at this point in the history
  • Loading branch information
danilych committed Feb 11, 2024
1 parent 767a264 commit 0a00a96
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/routes/my-account.courses.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion app/routes/my-account.my-courses.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
4 changes: 2 additions & 2 deletions app/widgets/create-course-form.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AddImageCover } from 'assets/images'
import { AddImageCover, AddVideoCover } from 'assets/images'
import { useRef, useState } from 'react'
import {
FilledButton,
Expand Down Expand Up @@ -155,7 +155,7 @@ export function CreateCourseForm() {
/>

<button type="button" onClick={() => inputVideoRef.current?.click()}>
<img src={AddImageCover} alt="Add image" />
<img src={AddVideoCover} alt="Add image" />
</button>
</div>

Expand Down
Binary file modified assets/images/add-image-cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/add-video-cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ export { default as Advantages2 } from './advantages-2.png'
export { default as Advantages3 } from './advantages-3.png'
export { default as JoinUsImage } from './join-us.png'
export { default as AddImageCover } from './add-image-cover.png'
export { default as AddVideoCover } from './add-video-cover.png'
export { default as EmptyAvatar } from './empty-avatar.png'
export { default as AddCourseCard } from './add-course-card.png'

0 comments on commit 0a00a96

Please sign in to comment.