Skip to content

Commit

Permalink
Misc style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CommandMC committed Dec 1, 2024
1 parent 7918e00 commit 0d5ab0e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const DialogContent: React.FC<Props> = ({
children,
className
}: Props) => {
return <div className={`Dialog__content ${className}`}>{children}</div>
return <div className={className}>{children}</div>
}
14 changes: 11 additions & 3 deletions src/frontend/components/UI/Dialog/components/DialogHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { ReactNode } from 'react'
import { DialogTitle } from '@mui/material'

interface DialogHeaderProps {
onClose?: () => void
Expand All @@ -7,8 +8,15 @@ interface DialogHeaderProps {

export const DialogHeader: React.FC<DialogHeaderProps> = ({ children }) => {
return (
<div className="Dialog__header">
<h1 className="Dialog__headerTitle">{children}</h1>
</div>
<DialogTitle
sx={{
fontFamily: 'var(--primary-font-family)',
fontSize: 'var(--text-xl)',
fontWeight: 'var(--bold)',
paddingLeft: 0
}}
>
{children}
</DialogTitle>
)
}

0 comments on commit 0d5ab0e

Please sign in to comment.