Skip to content

Commit

Permalink
remove interior-header
Browse files Browse the repository at this point in the history
  • Loading branch information
raykyri committed Apr 27, 2023
1 parent 376087d commit 31193f8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 47 deletions.
30 changes: 26 additions & 4 deletions client-admin/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ import Account from './pages/manage/account'

/* participate */
import Survey from './pages/survey'

import InteriorHeader from './pages/interior-header'
import Logomark from './pages/widgets/logomark'

const PrivateRoute = ({ component: Component, isLoading, authed, ...rest }) => {
if (isLoading) {
Expand Down Expand Up @@ -168,7 +167,30 @@ class App extends React.Component {
<Route exact path="/tos" component={TOS} />
<Route exact path="/privacy" component={Privacy} />

<InteriorHeader>
<Box>
<Box
sx={{
width: '100%',
backgroundColor: 'primary',
color: 'background',
zIndex: 1000,
py: [3],
px: [4],
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between'
}}>
<Link sx={{ variant: 'links.header' }} to="/">
<Logomark
style={{ marginRight: 10, position: 'relative', top: 6 }}
fill={'white'}
/>
Polis
</Link>
<Link id="signoutLink" sx={{ variant: 'links.header' }} to="/signout">
sign out
</Link>
</Box>
<Route
render={(routeProps) => {
if (routeProps.location.pathname.split('/')[1] === 'm') {
Expand Down Expand Up @@ -246,7 +268,7 @@ class App extends React.Component {
authed={this.isAuthed()}
component={ConversationAdmin}
/>
</InteriorHeader>
</Box>
</Switch>
</>
)
Expand Down
5 changes: 2 additions & 3 deletions client-admin/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ import thunk from 'redux-thunk'
import { ThemeProvider } from 'theme-ui'
import theme from './theme'
import App from './app'
import rootReducer from '../reducers'
import rootReducer from './reducers'

const middleware = [thunk]
const createStore = compose(applyMiddleware(...middleware))(createStore)
const store = createStore(rootReducer)
const store = compose(applyMiddleware(...middleware))(createStore)(rootReducer)

class Root extends React.Component {
render() {
Expand Down
40 changes: 0 additions & 40 deletions client-admin/src/pages/interior-header.js

This file was deleted.

0 comments on commit 31193f8

Please sign in to comment.