Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Rename AcceptedTermsAndConditions types #24

Merged
merged 1 commit into from
Nov 30, 2023
Merged

Rename AcceptedTermsAndConditions types #24

merged 1 commit into from
Nov 30, 2023

Conversation

bisgardo
Copy link
Contributor

I think it's misleading to name the AcceptedTermsAndConditionsState "state" as it's really just a value that can be passed around, not necessarily in the context of state. It was renamed in a previous PR to give the new Hive entity its name instead. I think it's important to not refer to entity objects directly from the widgets, and therefore useful to explicitly suffix entity types with Entity to make it clear if it happens.

As such, the changes in this PR is just the renamings

  • AcceptedTermsAndConditionsState -> AcceptedTermsAndConditions
  • AcceptedTermsAndConditions -> AcceptedTermsAndConditionsEntity

Also acceptNow was renamed to acceptedNow to avoid indicating that it has a side effect.

I think it's misleading to name the `AcceptedTermsAndConditionsState` "state" as it's really just a value that can be passed around, not necessarily in the context of state. It was renamed in a previous PR to give the new Hive entity its name instead. I think it's important to not refer to entity objects directly from the widgets, and therefore useful to explicitly suffix entity types with `Entity` to make it clear if it happens.

As such, the changes in this PR is just the renamings

- `AcceptedTermsAndConditionsState` -> `AcceptedTermsAndConditions`
- `AcceptedTermsAndConditions` -> `AcceptedTermsAndConditionsEntity`

Also `acceptNow` was renamed to `acceptedNow` to avoid indicating that it has a side effect.
@bisgardo bisgardo requested a review from a user November 30, 2023 10:54
@bisgardo bisgardo merged commit a61b5c9 into main Nov 30, 2023
2 checks passed
@bisgardo bisgardo deleted the mo/rename branch November 30, 2023 12:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant