Upload image for use in blocknote editor (#3044)
* - upload image to use in blocknote editor - fix local-storage not in gitignore * fix lint * fix runtime config add tests for body parsing notes and tasks * lint
This commit is contained in:
@ -45,7 +45,7 @@ const StyledAttachmentContainer = styled.div`
|
||||
background: ${({ theme }) => theme.background.secondary};
|
||||
border: 1px solid ${({ theme }) => theme.border.color.medium};
|
||||
border-radius: ${({ theme }) => theme.border.radius.md};
|
||||
disply: flex;
|
||||
display: flex;
|
||||
flex-flow: column nowrap;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
|
||||
@ -12,6 +12,7 @@ import {
|
||||
} from '@/object-record/field/contexts/FieldContext';
|
||||
import { useDeleteOneRecord } from '@/object-record/hooks/useDeleteOneRecord';
|
||||
import { IconCalendar } from '@/ui/display/icon';
|
||||
import { REACT_APP_SERVER_BASE_URL } from '~/config';
|
||||
import { formatToHumanReadableDate } from '~/utils';
|
||||
|
||||
const StyledRow = styled.div`
|
||||
@ -75,11 +76,7 @@ export const AttachmentRow = ({ attachment }: { attachment: Attachment }) => {
|
||||
<StyledLeftContent>
|
||||
<AttachmentIcon attachment={attachment} />
|
||||
<StyledLink
|
||||
href={
|
||||
process.env.REACT_APP_SERVER_BASE_URL +
|
||||
'/files/' +
|
||||
attachment.fullPath
|
||||
}
|
||||
href={REACT_APP_SERVER_BASE_URL + '/files/' + attachment.fullPath}
|
||||
target="__blank"
|
||||
>
|
||||
{attachment.name}
|
||||
|
||||
Reference in New Issue
Block a user