mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Merge pull request #36539 from overleaf/mj-misc-dark-mode-modals-core1
[web] Add dark mode to misc editor modals GitOrigin-RevId: 3d7bd45476b0f814abfc26fa3da3eecca54342e8
This commit is contained in:
committed by
Copybot
parent
034b9e35be
commit
51ae580da9
@@ -2,6 +2,7 @@ import React from 'react'
|
||||
import DictionaryModalContent from './dictionary-modal-content'
|
||||
import withErrorBoundary from '../../../infrastructure/error-boundary'
|
||||
import { OLModal } from '@/shared/components/ol/ol-modal'
|
||||
import { useFeatureFlag } from '@/shared/context/split-test-context'
|
||||
|
||||
type DictionaryModalProps = {
|
||||
show?: boolean
|
||||
@@ -9,6 +10,8 @@ type DictionaryModalProps = {
|
||||
}
|
||||
|
||||
function DictionaryModal({ show, handleHide }: DictionaryModalProps) {
|
||||
const themed = useFeatureFlag('themed-modals')
|
||||
|
||||
return (
|
||||
<OLModal
|
||||
animation
|
||||
@@ -17,6 +20,7 @@ function DictionaryModal({ show, handleHide }: DictionaryModalProps) {
|
||||
id="dictionary-modal"
|
||||
data-testid="dictionary-modal"
|
||||
size="sm"
|
||||
themed={themed}
|
||||
>
|
||||
<DictionaryModalContent handleHide={handleHide} />
|
||||
</OLModal>
|
||||
|
||||
Reference in New Issue
Block a user