Skip to content

Commit

Permalink
style: format code with Prettier and StandardJS
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 150aa2c according to the output
from Prettier and StandardJS.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored Sep 19, 2024
1 parent 150aa2c commit ac7b80a
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 57 deletions.
24 changes: 12 additions & 12 deletions src/pages/layout/proSecNav/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
QuestionCircleOutlined,
FireOutlined,
GlobalOutlined,
QrcodeOutlined,
QrcodeOutlined
} from '@ant-design/icons'

import styles from './index.module.less'
Expand All @@ -19,7 +19,7 @@ const pathSubmenu = {
'/home': ['home'],
'/coupons/add': ['/sub-act', '/sub-coupons'],
'/coupons/edit': ['/sub-act', '/sub-coupons'],
'/product': ['/sub-act', '/sub-coupons'],
'/product': ['/sub-act', '/sub-coupons']
}

const ProSecNav = () => {
Expand Down Expand Up @@ -94,37 +94,37 @@ const ProSecNav = () => {
icon: <FireOutlined />,
children: [
{ label: 'Vue', key: '/coupons/add' },
{ label: 'Angular', key: '/coupons/edit' },
],
{ label: 'Angular', key: '/coupons/edit' }
]
},
{ label: '后端技术栈', key: '/product', icon: <DeploymentUnitOutlined /> },
],
{ label: '后端技术栈', key: '/product', icon: <DeploymentUnitOutlined /> }
]
},
{
label: '构建工具',
key: '/sub-list',
icon: <ApartmentOutlined />,
children: [
{ label: 'Webpack', key: '/coupons/list' },
{ label: 'Vite', key: '/order/list' },
],
{ label: 'Vite', key: '/order/list' }
]
},
{
label: 'Error',
key: '/sub-error',
icon: <QuestionCircleOutlined />,
children: [{ label: 'ErrorBoundary', key: '/error' }],
},
children: [{ label: 'ErrorBoundary', key: '/error' }]
}
]

return (
<Menu
mode="inline"
mode='inline'
defaultSelectedKeys={selectedKeys}
defaultOpenKeys={openKeys}
selectedKeys={selectedKeys}
openKeys={openKeys}
theme="light"
theme='light'
className={styles.menu}
onOpenChange={onOpenChange}
onSelect={onSelect}
Expand Down
20 changes: 10 additions & 10 deletions src/pages/superMap/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ const SuperMap = () => {
const iconList = [
{
locationX: 121.44,
locationY: 31.25,
locationY: 31.25
},
{
locationX: 121.54,
locationY: 31.14,
locationY: 31.14
},
{
locationX: 121.473919,
locationY: 30.955082,
locationY: 30.955082
},
{
locationX: 121.447153,
locationY: 30.800443,
},
locationY: 30.800443
}
]

useEffect(() => {
Expand All @@ -51,7 +51,7 @@ const SuperMap = () => {
minZoom: 3,
zoom: 3,
attributionControl: false,
zoomControl: true,
zoomControl: true
})
const layer = new TiledMapLayer(url)
layer.addTo(map)
Expand All @@ -71,7 +71,7 @@ const SuperMap = () => {
const markerCluster = L.markerClusterGroup({
spiderfyOnMaxZoom: true,
showCoverageOnHover: false,
zoomToBoundsOnClick: true,
zoomToBoundsOnClick: true
})

markerClusterRef.current = markerCluster
Expand All @@ -84,11 +84,11 @@ const SuperMap = () => {

const myIcon = L.icon({
iconUrl,
iconSize: [20, 24],
iconSize: [20, 24]
})

const marker = L.marker([lat, lon], {
icon: myIcon,
icon: myIcon
})

markerCluster.addLayer(marker)
Expand All @@ -99,7 +99,7 @@ const SuperMap = () => {

return (
<section className={styles.homeBox}>
<div id="superMap" className={styles.superMap} ref={superMapRef}></div>
<div id='superMap' className={styles.superMap} ref={superMapRef} />
</section>
)
}
Expand Down
Loading

0 comments on commit ac7b80a

Please sign in to comment.