Skip to content

Commit

Permalink
feat: update antd to 4.24.12 (#60)
Browse files Browse the repository at this point in the history
* update: update antd to ~4.24.0

* update: remove ~

* update: remove comments
  • Loading branch information
love98ooo authored Aug 7, 2024
1 parent ea5b69c commit b957f74
Show file tree
Hide file tree
Showing 3 changed files with 346 additions and 276 deletions.
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@ant-design/icons": "4.6.2",
"@craco/craco": "6.4.5",
"antd": "4.15.5",
"antd": "4.24.12",
"casdoor-js-sdk": "^0.2.7",
"copy-to-clipboard": "^3.3.3",
"craco-less": "2.0.0",
Expand Down
18 changes: 8 additions & 10 deletions web/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,10 @@ class App extends Component {
renderRightDropdown() {
const menu = (
<Menu onClick={this.handleRightDropdownClick.bind(this)}>
<Menu.Item key="/account">
<SettingOutlined />
<Menu.Item key="/account" icon={<SettingOutlined />}>
{i18next.t("account:My Account")}
</Menu.Item>
<Menu.Item key="/logout">
<LogoutOutlined />
<Menu.Item key="/logout" icon={<LogoutOutlined />}>
{i18next.t("account:Sign Out")}
</Menu.Item>
</Menu>
Expand Down Expand Up @@ -237,7 +235,7 @@ class App extends Component {
</div>
);
return (
<div style={{float: "right", margin: "0px", padding: "0px"}}>
<div style={{margin: "0px", padding: "0px"}}>
{
res
}
Expand Down Expand Up @@ -328,7 +326,7 @@ class App extends Component {
renderContent() {
return (
<div>
<Header style={{padding: "0", marginBottom: "3px"}}>
<Header style={{padding: "0", marginBottom: "3px", backgroundColor: "white", width: "100%"}} mode={"horizontal"}>
{
Setting.isMobile() ? null : (
<Link to={"/"}>
Expand All @@ -340,16 +338,16 @@ class App extends Component {
// theme="dark"
mode={"horizontal"}
selectedKeys={[`${this.state.selectedMenuKey}`]}
style={{lineHeight: "64px"}}
style={{lineHeight: "64px", position: "absolute", left: 138, right: "300px"}}
>
{
this.renderMenu()
}
{
this.renderAccount()
}
{/* <SelectLanguageBox /> */}
</Menu>
{
this.renderAccount()
}
</Header>
<Switch>
<Route exact path="/callback" component={AuthCallback} />
Expand Down
Loading

0 comments on commit b957f74

Please sign in to comment.