Skip to content

Commit

Permalink
Revert "Add graduate banner (#264)"
Browse files Browse the repository at this point in the history
This reverts commit 837e222.
  • Loading branch information
pranavphadke1 authored May 14, 2024
1 parent 06f0063 commit a4d0c33
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 143 deletions.
19 changes: 3 additions & 16 deletions components/common/AlertBanner.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import React, { ReactElement, useState } from 'react';
import React, { useState } from 'react';
import macros from '../macros';
import IconClose from '../icons/IconClose';
import Colors from '../../styles/_exports.module.scss';
import GraduateLogo from '../icons/GraduateLogo';
import Colors from '../styles/_exports.module.scss';

type AlertLevel = 'error' | 'warning' | 'info';

export type AlertBannerData = {
text: string;
alertLevel: AlertLevel;
link?: string;
linkText?: string;
logo?: () => ReactElement;
};

type AlertBannerProps = {
Expand All @@ -31,20 +28,10 @@ export default function AlertBanner({ alertBannerData }: AlertBannerProps) {
>
<div className={`alertBanner ${alertBannerData.alertLevel}Banner`}>
<div className="alertBanner__text">
{alertBannerData.logo && (
<span className="alertBanner__logo">
<alertBannerData.logo />
</span>
)}
<span>
{alertBannerData.text}
{alertBannerData.link && (
<a href={alertBannerData.link} target="_blank" rel="noreferrer">
{' '}
{alertBannerData.linkText
? alertBannerData.linkText
: 'Learn More'}
</a>
<a href={alertBannerData.link}> Learn More.</a>
)}
</span>
</div>
Expand Down
82 changes: 0 additions & 82 deletions components/icons/GraduateLogo.tsx

This file was deleted.

Loading

0 comments on commit a4d0c33

Please sign in to comment.