Skip to content

Commit

Permalink
Rename to withContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
snaerseljan committed May 16, 2024
1 parent 88172b5 commit 91898c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ export const DocumentDetailScreen: NavigationFunctionComponent<{
]}
>
{error ? (
<Problem type="error" noContainer />
<Problem type="error" withContainer />
) : (
<Loader
text={intl.formatMessage({ id: 'documentDetail.loadingText' })}
Expand Down
6 changes: 3 additions & 3 deletions apps/native/app/src/ui/lib/problem/problem-template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type ProblemTemplateBaseProps = {
variant: Variant
title: string
message: string | ReactNode
noContainer?: boolean
withContainer?: boolean
}

interface WithIconProps extends ProblemTemplateBaseProps {
Expand Down Expand Up @@ -110,13 +110,13 @@ export const ProblemTemplate = ({
message,
showIcon,
tag,
noContainer,
withContainer,
}: ProblemTemplateProps) => {
const { borderColor, tagColor, tagBackgroundColor } =
getColorsByVariant(variant)

return (
<Host borderColor={borderColor} noContainer={noContainer}>
<Host borderColor={borderColor} noContainer={withContainer}>
{tag && (
<Tag
variant="eyebrow"
Expand Down
6 changes: 3 additions & 3 deletions apps/native/app/src/ui/lib/problem/problem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type ProblemBaseProps = {
title?: string
message?: string
logError?: boolean
} & Pick<ProblemTemplateBaseProps, 'noContainer'>
} & Pick<ProblemTemplateBaseProps, 'withContainer'>

interface ErrorProps extends ProblemBaseProps {
type?: 'error'
Expand Down Expand Up @@ -59,13 +59,13 @@ export const Problem = ({
message,
tag,
logError = false,
noContainer,
withContainer,
showIcon,
}: ProblemProps) => {
const t = useTranslate()
const { isConnected } = useOfflineStore()

const defaultProps = { noContainer }
const defaultProps = { withContainer }

const fallbackProps = {
...defaultProps,
Expand Down

0 comments on commit 91898c0

Please sign in to comment.