ShopOne / Shitforces

くそなぞなぞコンテストサイト
shitforces.vercel.app
MIT License
27 stars 13 forks source link

feat(frontend): improve the pagination component #163

Closed reminjp closed 3 years ago

reminjp commented 3 years ago

after #160

現在存在するPagingElementのpropsにvalue: number;を追加し、コンポーネントの外でのstate管理に統一する。

reminjp commented 3 years ago

補足

つまりPagingElementのpropsはこういうありふれたパターンに。

interface Props {
  onChange(value: number): void;
  value: number
  ...
}
no-yan commented 3 years ago

やってみました。ちょっと思ってたのと違うとかあれば遠慮なく言ってください。