mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Reduce CPPH
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import * as React from 'react';
|
||||
|
||||
import type { SxProps } from '@mui/joy/styles/types';
|
||||
import { Box, Button, Sheet } from '@mui/joy';
|
||||
import { Box, Button, Sheet, Typography } from '@mui/joy';
|
||||
|
||||
import { BlocksContainer } from '~/modules/blocks/BlocksContainers';
|
||||
|
||||
@@ -309,13 +309,9 @@ export function ContentFragments(props: {
|
||||
case '_pt_sentinel':
|
||||
default:
|
||||
return (
|
||||
<ContentPartPlaceholder
|
||||
key={fragment.fId}
|
||||
placeholderText={`Unknown Content fragment: ${fragment.part.pt}`}
|
||||
messageRole={props.messageRole}
|
||||
contentScaling={props.contentScaling}
|
||||
showAsDanger
|
||||
/>
|
||||
<Typography key={fragment.fId} level='body-sm' color='danger'>
|
||||
Unknown Content fragment: {fragment.part.pt}
|
||||
</Typography>
|
||||
);
|
||||
}
|
||||
}).filter(Boolean)}
|
||||
|
||||
Reference in New Issue
Block a user