-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Responsive design process list #204
Conversation
…usted mobile menu, adjusted information button
…ton to float button in mobile view
<SiderMenu /> | ||
// <Menu theme="light" mode="inline" selectedKeys={[activeSegment]}> | ||
// {ability.can('view', 'Process') || ability.can('view', 'Template') ? ( | ||
// <> | ||
// <ProcessSider></ProcessSider> | ||
// <Divider /> | ||
// </> | ||
// ) : null} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you refactor / change parts of the code that are not just temporary, you can confidently remove those and don't need to comment everything out.
We can always go back in the commit history to get removed code back :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted! Thanks a lot! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The linting job fails on all your files. Is it possible that you haven't installed the VS Code prettier extension?
If you do, VS Code will automatically format your open file with prettier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can menu-mobile.tsx
and this file be refactored into one component? They seem very similar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
menu-sider was refactored to include menu-mobile. The components are now also visible in the mobile-menu as I haven't found a good work-around about how to exclude them there, yet.
type ProcessImportButtonProps = ButtonProps | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't we use ButtonProps directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's used directly now!
const [importProcessData, setImportProcessData] = useState<ProcessData[]>([]); | ||
const router = useRouter(); | ||
console.log(importProcessData) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log was removed
Summary
- Order in mobile view: search bar - action bar - list/ icon view, separate float button for import and create
- Order outside of mobile view: action bar - search bar - import button - create button - list/ icon view - info button
Details