feat: settings & solid login

This commit is contained in:
zerosoul
2022-02-27 12:30:14 +08:00
parent 0394c99292
commit f7634a59cd
35 changed files with 1552 additions and 246 deletions
+1
View File
@@ -20,6 +20,7 @@ const StyledWrapper = styled.div`
.logo {
width: 24px;
height: 24px;
border-radius: 50%;
}
.title {
white-space: nowrap;
+3 -1
View File
@@ -20,10 +20,12 @@ export default function HomePage() {
const {
ui: { menuExpand, setting, channelSetting },
authData: { usersVersion, afterMid },
contacts,
} = useSelector((store) => {
return {
authData: store.authData,
ui: store.ui,
contacts: store.contacts,
};
});
const { data, loading, error, success } = usePreload();
@@ -72,7 +74,7 @@ export default function HomePage() {
<Outlet />
</div>
</StyledWrapper>
{setting && <SettingModal />}
{setting && <SettingModal contacts={contacts} />}
{channelSetting && <ChannelSettingModal id={channelSetting} />}
</>
);