Skip to content

Commit

Permalink
Merge pull request idurar#990 from idurar/dev
Browse files Browse the repository at this point in the history
Fix Adding new admin bug
  • Loading branch information
salahlalami committed Mar 4, 2024
2 parents d9530c5 + b33eef4 commit 2270dfd
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 2270dfd

Please sign in to comment.