@daeryun/dr_components 1.1.30 → 1.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -83,14 +83,15 @@ const MapFix = (props) => {
83
83
  {[...Array(6)].map((_, areaIndex) => {
84
84
  var _a;
85
85
  const index = wrapperIndex * 6 + areaIndex;
86
- return mapAreas[index] ? (<AreaImage area={mapAreas[index]} key={areaIndex} isGroup={isGroup} alt={(_a = mapAltList === null || mapAltList === void 0 ? void 0 : mapAltList.filter((i) => i.key === mapAreas[index].src).map((item) => item.keyword).join(',')) !== null && _a !== void 0 ? _a : ''}/>) : (<></>);
86
+ return mapAreas[index] ? (<AreaImage area={mapAreas[index]} key={areaIndex} isGroup={isGroup} alt={(_a = mapAltList === null || mapAltList === void 0 ? void 0 : mapAltList.filter(i => i.key === mapAreas[index].src).map(item => item.keyword).join(',')) !== null && _a !== void 0 ? _a : ''}/>) : (<></>);
87
87
  })}
88
88
  </SwiperSlide>);
89
89
  })) : (<></>)}
90
90
  </span>
91
91
  </div>
92
92
  </div>
93
- <span className={'mx-auto mt-1 flex h-[20px] !w-[46px] items-center justify-center gap-[3px]'} id={'map-pagination'}></span>
93
+ <span className={'mx-auto mt-1 flex h-[20px] !w-[46px] items-center justify-center gap-[3px] ' +
94
+ `${mapAreas.length <= 6 ? 'hidden' : ''}`} id={'map-pagination'}></span>
94
95
  </span>
95
96
  <Link className={'mx-auto flex h-[50px] w-[183px] items-center justify-between rounded-[40px] border border-solid border-black px-[20px] text-[16px] font-bold leading-none tracking-[-0.32px]'} target={isGroup ? '' : '_blank'} href={isGroup ? '/map' : 'https://www.daeryunlaw.com/map'} onClick={() => {
96
97
  setMapFixOpen(false);
@@ -130,10 +130,12 @@ const MapFix = (props: {
130
130
  area={mapAreas[index]}
131
131
  key={areaIndex}
132
132
  isGroup={isGroup}
133
- alt={mapAltList
134
- ?.filter((i) => i.key === mapAreas[index].src)
135
- .map((item) => item.keyword)
136
- .join(',') ?? ''}
133
+ alt={
134
+ mapAltList
135
+ ?.filter(i => i.key === mapAreas[index].src)
136
+ .map(item => item.keyword)
137
+ .join(',') ?? ''
138
+ }
137
139
  />
138
140
  ) : (
139
141
  <></>
@@ -149,7 +151,10 @@ const MapFix = (props: {
149
151
  </div>
150
152
  </div>
151
153
  <span
152
- className={'mx-auto mt-1 flex h-[20px] !w-[46px] items-center justify-center gap-[3px]'}
154
+ className={
155
+ 'mx-auto mt-1 flex h-[20px] !w-[46px] items-center justify-center gap-[3px] ' +
156
+ `${mapAreas.length <= 6 ? 'hidden' : ''}`
157
+ }
153
158
  id={'map-pagination'}
154
159
  ></span>
155
160
  </span>