Skip to content

Commit

Permalink
Remove epoch side effects
Browse files Browse the repository at this point in the history
  • Loading branch information
Pelmenner committed Jan 28, 2024
1 parent 49a6865 commit f976112
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
.ilmo--event-heading {
margin-bottom: 1em;
padding: 1em 0;
border-top: 1px solid #8B4513;
border-bottom: 1px solid #8B4513;
border-top: 1px solid $border-color;
border-bottom: 1px solid $border-color;

p {
margin-bottom: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,26 +57,23 @@ const SignupButton = ({

return (
<div className="ilmo--side-widget">
<h3>{t('singleEvent.signupButtons.title')}</h3>
<p>
{statusText.shortLabel}
{total < COUNTDOWN_DURATION && !isOpen && !isClosed && (
<h3>{t('singleEvent.signupButtons.title')}</h3>
<p>
{statusText.shortLabel}
{total < COUNTDOWN_DURATION && !isOpen && !isClosed && (
<span style={{ color: 'green' }}>
{` (${seconds} s)`}
</span>
)}
</p>
{quotas.map((quota) => (
<Button

key={quota.id}
type="button"
variant="secondary"
disabled={!isOpen || submitting}
className="ilmo--signup-button"
onClick={() => onClick(quota.id)}
style={{ backgroundColor: '#9e0e0e', border: 0 }}

>
{isOnly ? t('singleEvent.signupButton.singleQuota') : t('singleEvent.signupButton', { quota: quota.title })}
</Button
Expand Down
18 changes: 11 additions & 7 deletions packages/ilmomasiina-components/src/routes/SingleEvent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,24 @@ const SingleEvent = () => {
border-top: black dotted 1px;
}
.ilmo--signup-button {
background-color: #9e0e0e;
border: 0;
}
.ilmo--event-heading {
border-top: 1px solid #8B4513;
border-bottom: 1px solid #8B4513;
}
.ilmo--side-widget {
background-color: #e8d6ac;
border-radius: 0.5rem;
`}
</style>
</>
) : (
<style>
{`
.dg-logo {
display: none;
}
`}
</style>
<style />
)}
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Header = () => {
<Navbar>
<Container>
<Image
style={{ height: '3rem' }}
style={{ height: '3rem', display: 'none' }}
src="https://i.ibb.co/PZf4chr/data-Guild-Stamp.png"
className="dg-logo"
/>
Expand Down

0 comments on commit f976112

Please sign in to comment.