Skip to content

Commit

Permalink
Merge branch 'bog-changes-s23-merged' of https://github.com/gt-schedu…
Browse files Browse the repository at this point in the history
…ler/website into sophia/204-compare-functionality
  • Loading branch information
samarth52 committed Oct 20, 2023
2 parents 499c970 + ef99fd6 commit 6ccf3d4
Show file tree
Hide file tree
Showing 59 changed files with 1,618 additions and 661 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Resolves #[ticket-number]


### How to Test
<!-- Describe how to test your code. -->
<!-- Describe how to test your code. -->
21 changes: 18 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'

- name: Install
run: yarn install --frozen-lockfile
Expand All @@ -29,7 +34,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'

- name: Install
run: yarn install --frozen-lockfile
Expand Down Expand Up @@ -59,7 +69,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'

- name: Install
run: yarn install --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
persist-credentials: false
# Fetch all history for Sentry to properly create the release
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@sentry/react": "^6.12.0",
"@sentry/tracing": "^6.12.0",
"@types/lodash": "^4.14.192",
"@types/react-map-gl": "^6.1.3",
"axios": "^0.21.4",
"cheerio": "^1.0.0-rc.3",
"copy-to-clipboard": "^3.3.1",
Expand All @@ -30,7 +31,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-firebaseui": "^5.0.2",
"react-map-gl": "^5.2.10",
"react-map-gl": "5.2.11",
"react-overlays": "^5.1.1",
"react-resize-panel": "^0.3.5",
"react-router-dom": "^6.8.1",
Expand Down
Binary file removed public/bitsOfGood.png
Binary file not shown.
12 changes: 12 additions & 0 deletions public/bitsOfGood.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/drag_event_blocks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/event_blocks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 28 additions & 11 deletions src/components/ActionRow/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { Tooltip as ReactTooltip } from 'react-tooltip';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';

import { classes } from '../../utils/misc';
Expand All @@ -11,6 +12,7 @@ export type Action = {
icon: FontAwesomeProps['icon'];
styling?: React.CSSProperties;
id?: string;
tooltip?: string;
onMouseEnter?: () => void;
onMouseLeave?: () => void;
} & Omit<ButtonProps, 'children'>;
Expand Down Expand Up @@ -40,19 +42,34 @@ export default function ActionRow({
.flatMap((action) => (action != null ? [action] : []))
.map(
(
{ icon, styling, id, onMouseEnter, onMouseLeave, ...rest },
{
icon,
styling,
id,
tooltip,
onMouseEnter,
onMouseLeave,
...rest
},
i
) => (
<Button className="action" {...rest} key={i}>
<FontAwesomeIcon
fixedWidth
style={styling}
icon={icon}
id={id}
onMouseEnter={onMouseEnter}
onMouseLeave={onMouseLeave}
/>
</Button>
<>
<Button className="action" {...rest} key={i}>
<FontAwesomeIcon
fixedWidth
style={styling}
icon={icon}
id={id}
onMouseEnter={onMouseEnter}
onMouseLeave={onMouseLeave}
/>
</Button>
{tooltip && (
<ReactTooltip anchorId={id} variant="dark" place="left">
{tooltip}
</ReactTooltip>
)}
</>
)
)}
</div>
Expand Down
Loading

0 comments on commit 6ccf3d4

Please sign in to comment.