Skip to content

Commit

Permalink
Merge pull request #6 from Devteamvietnam/dev
Browse files Browse the repository at this point in the history
update
  • Loading branch information
ddthien-coder authored Sep 3, 2022
2 parents 7961843 + e129da8 commit 1bf882d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@types/react-router-dom": "^5.3.3",
"@types/redux": "^3.6.0",
"@types/redux-thunk": "^2.1.0",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"babel-eslint": "^10.1.0",
Expand Down
19 changes: 15 additions & 4 deletions src/components/header/UIHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@ export class UIHeader extends Component<HeaderProps> {

return (
<React.Fragment>
<AppBar position="relative">
<Toolbar sx={{ borderBottom: 1, borderColor: 'divider' }}>
<AppBar
position="static"
color="default"
elevation={0}
sx={{ borderBottom: theme => `1px solid ${theme.palette.divider}` }}
>
<Toolbar
sx={{ borderBottom: 1, borderColor: 'divider', flexWrap: 'wrap' }}
>
<Typography
component="h1"
variant="h5"
Expand All @@ -49,12 +56,16 @@ export class UIHeader extends Component<HeaderProps> {
>
<img src={logo} className="App-logo-header" alt="logo" />
</Typography>
<Button variant="outlined" size="small"></Button>
<Button size="small"></Button>
</Toolbar>
<Toolbar
component="nav"
variant="dense"
sx={{ justifyContent: 'center', overflowX: 'auto' }}
sx={{
justifyContent: 'center',
overflowX: 'auto',
flexWrap: 'wrap'
}}
>
{sections.map(section => (
<Link
Expand Down
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import ReactDOM from 'react-dom/client';

import reportWebVitals from './reportWebVitals';
import * as serviceWorker from './serviceWorker';

import AppRouter from './routes';

const root = ReactDOM.createRoot(
Expand Down
4 changes: 4 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import FacebookIcon from '@mui/icons-material/Facebook';
import TwitterIcon from '@mui/icons-material/Twitter';
import { createTheme, ThemeProvider } from '@mui/material/styles';
import Grid from '@mui/material/Grid';
import GlobalStyles from '@mui/material/GlobalStyles';

import { AppContext } from '../api';

Expand Down Expand Up @@ -86,6 +87,9 @@ export class UIPages extends Component {
const posts = [];
return (
<ThemeProvider theme={theme}>
<GlobalStyles
styles={{ ul: { margin: 0, padding: 0, listStyle: 'none' } }}
/>
<CssBaseline />
<Container maxWidth="xl">
<UIHeader sections={sections} title={'SHDSVN'} />
Expand Down

0 comments on commit 1bf882d

Please sign in to comment.