forked from ddrilling/asb_cloud_front
Merge branch 'dev' into feature/well-case
This commit is contained in:
commit
6a74544901
@ -8,7 +8,7 @@
|
||||
<meta name="theme-color" media="(prefers-color-scheme: light)" content="white" />
|
||||
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="black" />
|
||||
<meta name="description" content="Онлайн мониторинг процесса бурения в реальном времени в офисе заказчика" />
|
||||
<title>АСБ Vision</title>
|
||||
<title>DDrilling</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
|
@ -1,9 +1,11 @@
|
||||
import { memo } from 'react'
|
||||
|
||||
import logo from '@images/logo_32.png'
|
||||
import { ReactComponent as AsbLogo } from '@images/dd_logo_white_opt.svg'
|
||||
|
||||
export const Logo = memo<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>>((props) => (
|
||||
<img src={logo} alt={'АСБ'} className={'logo'} {...props} />
|
||||
export type LogoProps = React.SVGProps<SVGSVGElement> & { size?: number }
|
||||
|
||||
export const Logo = memo<LogoProps>(({ size = 200, ...props }) => (
|
||||
<AsbLogo className={'logo'} height={'100%'} {...props} />
|
||||
))
|
||||
|
||||
export default Logo
|
||||
|
1
src/images/dd_logo_white_opt.svg
Normal file
1
src/images/dd_logo_white_opt.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 8.4 KiB |
@ -6,7 +6,7 @@ import { ErrorFetch } from '@components/ErrorFetch'
|
||||
import { UploadForm } from '@components/UploadForm'
|
||||
|
||||
const errorTextStyle = { color: 'red', fontWeight: 'bold' }
|
||||
const uploadFormStyle = { marginTop: '24px' }
|
||||
const uploadFormStyle = { marginTop: 24 }
|
||||
|
||||
export const ImportOperations = memo(({ well: givenWell, onDone }) => {
|
||||
const [deleteBeforeImport, setDeleteBeforeImport] = useState(false)
|
||||
@ -15,7 +15,7 @@ export const ImportOperations = memo(({ well: givenWell, onDone }) => {
|
||||
const [wellContext] = useWell()
|
||||
const well = useMemo(() => givenWell ?? wellContext, [givenWell, wellContext])
|
||||
|
||||
const url = useMemo(() => `/api/well/${well.id}/wellOperations/import${deleteBeforeImport ? '/1' : '/0'}`, [well])
|
||||
const url = useMemo(() => `/api/well/${well.id}/wellOperations/import/${deleteBeforeImport ? 1 : 0}`, [well, deleteBeforeImport])
|
||||
|
||||
const onUploadSuccess = useCallback(() => {
|
||||
setErrorText('')
|
||||
|
@ -74,7 +74,7 @@ html {
|
||||
.header .title{
|
||||
flex-grow: 1;
|
||||
color: #fff;
|
||||
padding-left: 450px;
|
||||
padding-left: calc(100vw / 2 - 400px);
|
||||
}
|
||||
|
||||
.header button{
|
||||
|
Loading…
Reference in New Issue
Block a user