citylist.tsx 1.4 KB
Newer Older
백승민's avatar
백승민 committed
1
import React, {  MouseEventHandler } from "react";
백승민's avatar
theme1    
백승민 committed
2
3


백승민's avatar
백승민 committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
type CityProps = {
  handleClick: MouseEventHandler;
}

export default function Citylist({handleClick}: CityProps) {
  return (
    <div className="overflow-auto flex flex-row mb-10 md:flex-col md:basis-1/5 md:mr-10 bg-gray-400 rounded ">
      <button id={"Seoul"} onClick={handleClick} className="shrink-0 px-5 hover:underline">seoul</button>
      <button id={"Busan"} onClick={handleClick} className="shrink-0 px-5 hover:underline">Busan</button>
      <button id={"Incheon"} onClick={handleClick} className="shrink-0 px-5 hover:underline">Incheon</button>
      <button id={"Daegoo"} onClick={handleClick} className="shrink-0 px-5 hover:underline">Daegoo</button>
      <button id={"Kwangjoo"} onClick={handleClick} className="shrink-0 px-5 hover:underline">Kwangjoo</button>
      <button id={"Daejeon"} onClick={handleClick} className="shrink-0 px-5 hover:underline">Daejeon</button>
      <button id={"Woolsan"} onClick={handleClick} className="shrink-0 px-5 hover:underline">woolsan</button>
      <button id={"Sejong"} onClick={handleClick} className="shrink-0 px-5 hover:underline">Sejong</button>
      <button id={"Dokdo"} onClick={handleClick} className="shrink-0 px-5 hover:underline">Dokdo</button>
      <button id={"Jeju"} onClick={handleClick} className="shrink-0 px-5 hover:underline">jeju</button>
      {/* citylist */}
    </div> // Citylist Page
  );
백승민's avatar
theme1    
백승민 committed
24
};