-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from actiontech/feature/DMS-539
[fix]: remove guidance segmented node and clearUserInfo when logout
- Loading branch information
Showing
11 changed files
with
11 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,7 @@ | ||
import StepBox from './StepBox'; | ||
import useUserTypeHooks from './hooks/useUserTypeHooks'; | ||
import { UserTypeDictionary } from '.'; | ||
import { BasicSegmented } from '@actiontech/shared'; | ||
import { DefaultSceneSegmentedWrapper } from '../style'; | ||
|
||
const DefaultScene: React.FC = () => { | ||
const { userType, onUserTypeChange } = useUserTypeHooks(); | ||
|
||
return ( | ||
<section> | ||
<DefaultSceneSegmentedWrapper> | ||
<BasicSegmented | ||
value={userType} | ||
onChange={(e) => { | ||
onUserTypeChange(e as typeof userType); | ||
}} | ||
options={[ | ||
{ | ||
label: UserTypeDictionary.admin, | ||
value: 'admin' | ||
}, | ||
{ | ||
label: UserTypeDictionary.normal, | ||
value: 'normal' | ||
} | ||
]} | ||
/> | ||
</DefaultSceneSegmentedWrapper> | ||
|
||
<StepBox /> | ||
</section> | ||
); | ||
return <StepBox />; | ||
}; | ||
|
||
export default DefaultScene; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
packages/base/src/page/Home/DefaultScene/hooks/useUserTypeHooks.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters