wip
This commit is contained in:
parent
313f1def49
commit
36f5eef849
12 changed files with 39 additions and 23 deletions
|
@ -16,7 +16,7 @@ interface HomePageProps {
|
|||
}
|
||||
|
||||
export default function HomePage({ postsService, mediaService }: HomePageProps) {
|
||||
const [user] = useUser()
|
||||
const { user } = useUser()
|
||||
|
||||
const [isSubmitting, setIsSubmitting] = useState(false)
|
||||
|
||||
|
@ -36,7 +36,6 @@ export default function HomePage({ postsService, mediaService }: HomePageProps)
|
|||
try {
|
||||
const media = await Promise.all(
|
||||
files.map(async ({ file, width, height }) => {
|
||||
console.debug('do mediaService.uploadFile', file, 'width', width, 'height', height)
|
||||
const { mediaId, url } = await mediaService.uploadFile(file)
|
||||
|
||||
return {
|
||||
|
|
|
@ -23,7 +23,6 @@ export class Post {
|
|||
}
|
||||
|
||||
public static fromDto(dto: components['schemas']['PublicPostDto']): Post {
|
||||
console.debug('make post', dto)
|
||||
return new Post(
|
||||
dto.postId,
|
||||
dto.content,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue