@daeryun/dr_components 1.1.80 → 1.1.82

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.
@@ -124,7 +124,12 @@ const PcMapKeyDetail = ({
124
124
  </div>
125
125
  </div>
126
126
  </div>
127
- <div className="flex border-b-[1px] border-solid border-[#ADADAD] py-4">
127
+ <div
128
+ className={
129
+ 'flex py-4 ' +
130
+ `${mapInfo.tel && mapInfo.tel !== '' ? 'border-b-[1px] border-solid border-[#ADADAD]' : ''}`
131
+ }
132
+ >
128
133
  <p className="w-[20%] font-bold">업무시간</p>
129
134
  <div className="w-[80%]">
130
135
  {mapInfo.worktime.split('|').map((time, index) => (
@@ -132,21 +137,36 @@ const PcMapKeyDetail = ({
132
137
  ))}
133
138
  </div>
134
139
  </div>
135
- <div className="flex border-b-[1px] border-solid border-[#ADADAD] py-4">
136
- <p className="w-[20%] font-bold">대표번호</p>
137
- <p className="w-[80%]">{mapInfo.tel}</p>
138
- </div>
139
- <div className="flex py-4">
140
- <p className="w-[20%] font-bold">주차</p>
141
- <div className="w-[80%]">
142
- {mapInfo.parking_info === '' ? (
143
- mapInfo.parking_info_arr?.map((info, index) => <p key={index}>{info}</p>)
144
- ) : (
145
- <p>{mapInfo.parking_info}</p>
146
- )}
147
- <p>* 대중교통 이용을 권장합니다.</p>
140
+ {mapInfo.tel && mapInfo.tel !== '' && (
141
+ <div
142
+ className={
143
+ 'flex py-4 ' +
144
+ `${
145
+ (mapInfo.parking_info_arr && mapInfo.parking_info_arr?.length > 0) ||
146
+ (mapInfo.parking_info && mapInfo.parking_info !== '')
147
+ ? 'border-b-[1px] border-solid border-[#ADADAD]'
148
+ : ''
149
+ }`
150
+ }
151
+ >
152
+ <p className="w-[20%] font-bold">대표번호</p>
153
+ <p className="w-[80%]">{mapInfo.tel}</p>
148
154
  </div>
149
- </div>
155
+ )}
156
+ {((mapInfo.parking_info_arr && mapInfo.parking_info_arr?.length > 0) ||
157
+ (mapInfo.parking_info && mapInfo.parking_info !== '')) && (
158
+ <div className="flex py-4">
159
+ <p className="w-[20%] font-bold">주차</p>
160
+ <div className="w-[80%]">
161
+ {mapInfo.parking_info === '' ? (
162
+ mapInfo.parking_info_arr?.map((info, index) => <p key={index}>{info}</p>)
163
+ ) : (
164
+ <p>{mapInfo.parking_info}</p>
165
+ )}
166
+ <p>* 대중교통 이용을 권장합니다.</p>
167
+ </div>
168
+ </div>
169
+ )}
150
170
  <div className="relative">
151
171
  <Image
152
172
  src={`${mapPath}/${mapInfo.img}`}