Skip to content

Commit

Permalink
Gateway Visuals (#117)
Browse files Browse the repository at this point in the history
* increase legibility

* remove stale code; create global style file

* further simplification

* fix bridging status indicator

* connect flow improvments

* almost done

* debug switching

* complete rewrite of the gateway<>MM interactions

* rewrite of the connection, switching, and layer system
  • Loading branch information
CAPtheorem authored Apr 19, 2022
1 parent d58bcae commit ceea452
Show file tree
Hide file tree
Showing 46 changed files with 1,202 additions and 2,531 deletions.
18 changes: 18 additions & 0 deletions packages/boba/gateway/src/actions/setupAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,21 @@ export function getETHMetaTransaction() {
export async function addBobaFee ( bobaFee ) {
store.dispatch({ type: 'BOBAFEE/ADD/SUCCESS', payload: bobaFee })
}

export function setConnectETH( state ) {
return function (dispatch) {
return dispatch({ type: 'SETUP/CONNECT_ETH', payload: state })
}
}

export function setConnectBOBA( state ) {
return function (dispatch) {
return dispatch({ type: 'SETUP/CONNECT_BOBA', payload: state })
}
}

export function setConnect( state ) {
return function (dispatch) {
return dispatch({ type: 'SETUP/CONNECT', payload: state })
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function ListToken({
const [ sliderValue_v1, setSliderValue_v1 ] = useState(55)

const theme = useTheme()

const isMobile = useMediaQuery(theme.breakpoints.down('md'))
const dispatch = useDispatch();
const enabled = (networkLayer === chain) ? true : false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
import { styled } from '@mui/material/styles'
import { Box, Typography } from '@mui/material';
import { Box, Typography } from '@mui/material'

export const Content = styled(Box)(({ theme }) => ({
display: 'flex',
flexDirection: 'column',
gap: '20px',
marginBottom: '5px',
width: '100%',
padding: '10px',
borderBottom: '1px solid rgba(255, 255, 255, 0.04)',
[ theme.breakpoints.down('sm') ]: {
padding: '10px 5px',
}
borderBottom: theme.palette.primary.borderBottom
}))


export const TableBody = styled(Box)(({ theme }) => ({
display: 'flex',
alignItems: 'center',
Expand All @@ -36,13 +31,11 @@ export const TableCell = styled(Box)(({ theme, isMobile }) => ({
}
}));


export const TextTableCell = styled(Typography)`
opacity: ${(props) => !props.enabled ? "0.4" : "1.0"};
font-weight: 700;
`;


export const DropdownWrapper = styled(Box)(({ theme }) => ({
display: 'flex',
justifyContent: 'center',
Expand Down
Loading

0 comments on commit ceea452

Please sign in to comment.