Skip to content

Commit

Permalink
fixed linter and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum-grit committed Oct 10, 2023
1 parent bca3964 commit a6b42bb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/client/campaigns/InlineDonation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useRouter } from 'next/router'
import { CampaignResponse } from 'gql/campaigns'

import { Button, CircularProgress, Grid, IconButton, Menu, Typography } from '@mui/material'
import { AddLinkOutlined, Favorite, MarkEmailUnread } from '@mui/icons-material'
import { AddLinkOutlined, Favorite } from '@mui/icons-material'
import { lighten } from '@mui/material/styles'
import { styled } from '@mui/material/styles'
import ExpandLessIcon from '@mui/icons-material/ExpandLess'
Expand Down
12 changes: 7 additions & 5 deletions src/components/common/form/FormRichTextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,20 @@ const StyledGrid = styled('div')(() => ({
},
}))

const EditorSwitch = styled('div')(() => ({
display: 'flex',
justifyContent: 'flex-end',
}))
// disabled as QuillEditor is default for now.
// const EditorSwitch = styled('div')(() => ({
// display: 'flex',
// justifyContent: 'flex-end',
// }))

export default function FormRichTextField({ name }: FormRichTextFieldProps) {
const { t } = useTranslation()
const [, meta] = useField(name)
const helperText = meta.touched ? translateError(meta.error as TranslatableField, t) : ''
// disabling MDXEditor integration.
// The markdown syntax does not support requirements like image and text alignment, colors, etc.
const [useMdxEditor, setUseMdxEditor] = React.useState(false)
//const [useMdxEditor, setUseMdxEditor] = React.useState(false)
const useMdxEditor = false

return (
<div>
Expand Down
1 change: 0 additions & 1 deletion src/components/common/person/grid/CreateForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import { useCreateBeneficiary } from 'service/beneficiary'
import OrganizerRelationSelect from 'components/admin/beneficiary/OrganizerRelationSelect'
import CountrySelect from 'components/admin/countries/CountrySelect'
import CitySelect from 'components/admin/cities/CitySelect'
import { treeItemClasses } from '@mui/lab'

const validationSchema = yup
.object()
Expand Down

0 comments on commit a6b42bb

Please sign in to comment.