-
-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add user action component (#4088)
- Loading branch information
Showing
26 changed files
with
283 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
import { observer } from 'mobx-react-lite' | ||
import { useCommonStores } from 'src/common/hooks/useCommonStores' | ||
|
||
import { UserAction } from '../UserAction' | ||
import { AlertIncompleteProfile } from './AlertIncompleteProfile' | ||
import { AlertProfileVerification } from './AlertProfileVerification' | ||
|
||
export const Alerts = observer(() => { | ||
const { userStore } = useCommonStores().stores | ||
const authUser = userStore.authUser | ||
|
||
if (!authUser) return null | ||
|
||
export const Alerts = () => { | ||
return ( | ||
<> | ||
<AlertProfileVerification /> | ||
<AlertIncompleteProfile /> | ||
</> | ||
<UserAction | ||
loggedIn={ | ||
<> | ||
<AlertProfileVerification /> | ||
<AlertIncompleteProfile /> | ||
</> | ||
} | ||
loggedOut={null} | ||
/> | ||
) | ||
}) | ||
} |
Oops, something went wrong.