mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-24 02:07:00 +08:00
feat(client): remove extra types in learn layout (#50945)
This commit is contained in:
@@ -18,10 +18,6 @@ type FetchState = {
|
||||
errored: boolean;
|
||||
};
|
||||
|
||||
type User = {
|
||||
acceptedPrivacyTerms: boolean;
|
||||
};
|
||||
|
||||
const mapStateToProps = createSelector(
|
||||
userFetchStateSelector,
|
||||
(fetchState: FetchState) => ({
|
||||
@@ -34,9 +30,7 @@ const mapDispatchToProps = {
|
||||
};
|
||||
|
||||
type LearnLayoutProps = {
|
||||
isSignedIn?: boolean;
|
||||
fetchState: FetchState;
|
||||
user: User;
|
||||
tryToShowDonationModal: () => void;
|
||||
children?: React.ReactNode;
|
||||
hasEditableBoundaries?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user