Skip to content

Commit

Permalink
Merge pull request #990 from idurar/dev
Browse files Browse the repository at this point in the history
Fix Adding new admin bug
  • Loading branch information
salahlalami authored Mar 4, 2024
2 parents 5affc1f + 4fe3d9e commit f10d5a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions frontend/src/apps/Header/HeaderContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Avatar, Dropdown, Layout } from 'antd';

// import Notifications from '@/components/Notification';

import { SettingOutlined, LogoutOutlined, AppstoreOutlined } from '@ant-design/icons';
import { SettingOutlined, LogoutOutlined, AppstoreOutlined, ToolOutlined, UserOutlined } from '@ant-design/icons';

import { selectCurrentAdmin } from '@/redux/auth/selectors';

Expand Down Expand Up @@ -65,7 +65,7 @@ export default function HeaderContent() {
type: 'divider',
},
{
icon: <SettingOutlined />,
icon: <UserOutlined />,
key: 'settingProfile',
label: (
<Link to={'/profile'}>
Expand All @@ -74,7 +74,7 @@ export default function HeaderContent() {
),
},
{
icon: <SettingOutlined />,
icon: <ToolOutlined />,
key: 'settingApp',
label: <Link to={'/settings'}>{translate('app_settings')}</Link>,
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/modules/AdminCrudModule/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function AdminCrudModule({ config, createForm, updateForm }) {
config={config}
fixHeaderPanel={<FixHeaderPanel config={config} />}
sidePanelBottomContent={
<CreateForm config={config} formElements={createForm} withUpload={true} />
<CreateForm config={config} formElements={createForm} withUpload={false} />
}
sidePanelTopContent={<SidePanelTopContent config={config} formElements={updateForm} />}
>
Expand Down

0 comments on commit f10d5a6

Please sign in to comment.