Skip to content

Commit

Permalink
fix: the logo on the create space page supports the dark theme (apita…
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-w authored and showlovetommy committed Mar 7, 2023
1 parent 69e81d5 commit d84e7fb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

import { Button, ThemeName } from '@apitable/components';
import { Api, IReduxState, Navigation, StoreActions, Strings, t } from '@apitable/core';
import { Api, IReduxState, Navigation, StoreActions, Strings, t, Selectors } from '@apitable/core';
import { Form, Input } from 'antd';
import Image from 'next/image';
import { Logo } from 'pc/components/common';
Expand Down Expand Up @@ -46,6 +46,7 @@ const CreateSpace: FC<React.PropsWithChildren<ICreateSpace>> = props => {
const dispatch = useDispatch();
const themeName = useSelector(state => state.theme);
const CreateSpaceIcon = themeName === ThemeName.Light ? CreateSpaceIconLight : CreateSpaceIconDark;
const theme = useSelector(Selectors.getTheme);

const { isCreateSpace, err, user } = useSelector((state: IReduxState) => ({
isCreateSpace: state.user.isCreateSpace,
Expand Down Expand Up @@ -108,7 +109,7 @@ const CreateSpace: FC<React.PropsWithChildren<ICreateSpace>> = props => {
{
!props.isShare &&
<div className={styles.logo}>
<Logo size='large' />
<Logo size='large' theme={theme} />
</div>
}

Expand Down

0 comments on commit d84e7fb

Please sign in to comment.