Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

week23 finished #27

Merged
merged 1 commit into from Dec 11, 2021
Merged

week23 finished #27

merged 1 commit into from Dec 11, 2021

Conversation

dingdingdingliu
Copy link
Contributor

Redux_TodoList 連結

完成功能如下:

  1. 新增 todo
  2. 改變 todo 完成與否
  3. 刪除單項 todo
  4. 刪除全部 todo
  5. 顯示 all / done / undone todoList
  6. 改變 colorTheme

到最後一個禮拜了,雖然只完成到 week23 的 redux 作業,感謝老師助教的批改,謝謝!!

border: 1px solid ${(props) => props.theme.colors.border};
`

function AddInput({ type, placeholder, value, onChange, onKeyPress }) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果你這個 component 只是把東西都傳下去,其實不需要這個,你直接用 AddInputStyle 也可以達成一樣的效果

margin-bottom: 20px;
`

const DeleteAllButtonStyle = styled(SmallButtonStyle)`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你底下這些其實都可以用同一個 button,加上 css & + & { margin-left: 8px} 就好

@aszx87410
Copy link
Member

Redux 的基本使用看起來沒什麼問題,其他部分就是有些小細節可以注意一下

@aszx87410 aszx87410 merged commit 1107be1 into master Dec 11, 2021
@aszx87410 aszx87410 deleted the week23 branch December 11, 2021 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants