Skip to content

Commit

Permalink
feat: add discord server link (#35)
Browse files Browse the repository at this point in the history
* feat: add discord server link

Signed-off-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>

* feat: bump manifest

Signed-off-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
  • Loading branch information
Patrick-Erichsen authored Dec 3, 2021
1 parent 1acf467 commit de18c87
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 18 deletions.
2 changes: 1 addition & 1 deletion assets/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Offie - Airbnb Wifi Reviews",
"description": "View Wifi and workspace info from the Airbnb search results page.",
"manifest_version": 3,
"version": "0.0.10",
"version": "0.0.11",
"icons": {
"16": "img/offie-logo-16.png",
"48": "img/offie-logo-48.png",
Expand Down
40 changes: 23 additions & 17 deletions src/content/components/InfoPopover/InfoPopoverFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,45 +1,51 @@
import { Typography } from '@mui/material';
import { OFFIE_URL } from '../../utils';
import AirbnbLink from '../AirbnbLink';

const InfoPopoverFooter = (): JSX.Element => {
const InfoPopoverFooter = (): JSX.Element | null => {
const discordInviteUrl = process.env.DISCORD_INVITE_URL;

if (!discordInviteUrl) {
return null;
}

return (
<footer
style={{
height: 48,
padding: '0 24px',
height: 64,
padding: '12px 24px',
display: 'flex',
justifyContent: 'space-between',
justifyContent: 'center',
alignItems: 'center',
position: 'relative',
flexWrap: 'wrap',
}}
>
<Typography
variant="subtitle2"
textAlign="center"
style={{
width: '100%',
color: '#717171',
}}
>
<AirbnbLink href={`${OFFIE_URL}/feedback`} variant="subtitle2">
Feedback
<AirbnbLink
href={discordInviteUrl}
variant="subtitle2"
target="_blank"
>
Join the Offie Discord
</AirbnbLink>
</Typography>

<Typography
variant="subtitle2"
textAlign="center"
variant="caption"
style={{
width: '100%',
color: '#717171',
}}
>
Made by{' '}
<AirbnbLink
href={OFFIE_URL}
target="_blank"
rel="noopener"
variant="subtitle2"
>
Offie
</AirbnbLink>
Connect with other remote professional workers
</Typography>
</footer>
);
Expand Down

0 comments on commit de18c87

Please # to comment.