Skip to content

Commit

Permalink
feat(mis-web): update style for init tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
ddadaal committed Oct 6, 2022
1 parent 4d30cce commit cd7badc
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions apps/mis-web/src/pageComponents/init/InitLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,24 @@ const CompleteButtonContainer = styled.div`
right: 0;
`;

const TabItems = [
{ label: <Link href="/init/importUsers">导入用户</Link>, key: "/init/importUsers" },
{ label: <Link href="/init/users">用户账户管理</Link>, key: "/init/users" },
{ label: <Link href="/init/createInitAdmin">创建初始管理员用户</Link>, key: "/init/createInitAdmin" },
{ label: <Link href="/init/jobPriceTable">编辑作业价格表</Link>, key: "/init/jobPriceTable" },
];

const TabsContainer = styled.div`
.ant-tabs-tab:not(.ant-tabs-tab-active) a {
color: initial;
}
`;

export const InitTab: React.FC = () => {
const TabItems = [
{ label: (<Link href="/init/importUsers">导入用户</Link>), key: "/init/importUsers" },
{ label: (<Link href="/init/users">用户账户管理</Link>), key: "/init/users" },
{ label: (<Link href="/init/createInitAdmin">创建初始管理员用户</Link>), key: "/init/createInitAdmin" },
{ label: (<Link href="/init/jobPriceTable">编辑作业价格表</Link>), key: "/init/jobPriceTable" },
];
return (
<div>
<TabsContainer>
<Tabs centered items={TabItems} activeKey={useRouter().asPath}/>
</div>
</TabsContainer>
);
};

Expand Down

0 comments on commit cd7badc

Please sign in to comment.