Merge branch 'main' into partner-personal-area

This commit is contained in:
Николай Полтщук 2023-02-27 16:50:52 +03:00
commit 9f96ce6167
4 changed files with 25 additions and 44744 deletions

44711
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -48,7 +48,8 @@
"resolve": "1.18.1",
"resolve-url-loader": "^3.1.2",
"semver": "7.3.2",
"sweetalert2": "^11.4.8"
"sweetalert2": "^11.4.8",
"ts-loader": "^9.4.2"
},
"devDependencies": {
"@babel/core": "^7.20.12",

View File

@ -80,40 +80,22 @@ const OutstaffingBlock = (
});
return (
<OutsideClickHandler
onOutsideClick={() => {
isSelected && onSelect(null)
}}
>
<div
className={`outstaffing-block${
isSelected ? ' outstaffing-block__selected' : ''
}`}
>
<div
className={`outstaffing-block__img ${
selected ? ' outstaffing-block__border' : ''
}`}
onClick={() =>
handlePositionClick({
<OutsideClickHandler onOutsideClick={() => isSelected && onSelect(null)}>
<div className={`outstaffing-block${isSelected ? ' outstaffing-block__selected' : ''}`}>
<div className={`outstaffing-block__img ${selected ? ' outstaffing-block__border' : ''}`}
onClick={() => handlePositionClick(
{
dispatch,
positionId,
isSelected,
onSelect,
apiRequest
})
}
>
}>
<h3>{header}</h3>
<img className={classes} src={img} alt='img'/>
</div>
<div
className={`${
selected
? 'outstaffing-block__mobile--block'
: 'outstaffing-block__mobile--none'
}`}
>
<div className={`${selected ? 'outstaffing-block__mobile--block' : 'outstaffing-block__mobile--none'}`} >
<p className='outstaffing-block__text'># Популярный стек</p>
{dataTags && (
<ul className='outstaffing-block__items'>

9
tsconfig.json Normal file
View File

@ -0,0 +1,9 @@
{
"compilerOptions": {
"target": "es5", // компилируем ts код в js код версии ES5
"module": "esnext",
// для поддержки динамического импорта модулей
"allowSyntheticDefaultImports": true,
"jsx": "react"
}
}