Skip to content

Commit

Permalink
Merge pull request #164 from NilFoundation/revert-careers-page-update
Browse files Browse the repository at this point in the history
Revert "Merge pull request #145 from NilFoundation/dev"
  • Loading branch information
ukorvl authored Jan 15, 2024
2 parents d1d45e0 + 455be49 commit 093eefe
Show file tree
Hide file tree
Showing 47 changed files with 1,373 additions and 4,366 deletions.
2,930 changes: 285 additions & 2,645 deletions site/package-lock.json

Large diffs are not rendered by default.

13 changes: 2 additions & 11 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,28 @@
},
"dependencies": {
"@hotjar/browser": "^1.0.9",
"@nilfoundation/ui-kit": "^2.2.11",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"axios": "^1.4.0",
"baseui": "^13.0.0",
"classnames": "^2.3.2",
"dayjs": "^1.11.9",
"fs": "^0.0.1-security",
"gsap": "^3.12.1",
"html-to-text": "^9.0.5",
"lodash.debounce": "^4.0.8",
"lodash.flatten": "^4.4.0",
"lodash.uniq": "^4.5.0",
"lottie-web": "^5.12.2",
"next": "^13.4.7",
"prop-types": "^15.8.1",
"qs": "^6.11.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sanitize-html": "^2.11.0",
"styletron-engine-atomic": "^1.6.2",
"styletron-react": "^6.1.1"
"react-dom": "^18.2.0"
},
"devDependencies": {
"@biomejs/biome": "1.2.2",
"@types/html-to-text": "^9.0.4",
"@types/lodash.debounce": "^4.0.7",
"@types/lodash.flatten": "^4.4.7",
"@types/lodash.uniq": "^4.5.9",
"@types/node": "^20.5.7",
"@types/qs": "^6.9.7",
"@types/sanitize-html": "^2.9.5",
"@types/showdown": "^2.0.1",
"eslint": "8.16.0",
"eslint-config-airbnb": "^19.0.4",
Expand Down
4 changes: 2 additions & 2 deletions site/src/components/common/Button/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentProps, ComponentPropsWithoutRef, ElementType, ReactNode, forwardRef, useMemo } from 'react'
import { ComponentProps, ElementType, ReactNode, forwardRef, useMemo } from 'react'
import Link from 'next/link'
import cx from 'classnames'

Expand All @@ -12,7 +12,7 @@ type ButtonElementProps<T extends ElementType = ElementType> = ComponentProps<T>
type ButtonOwnProps<T extends ElementType = ElementType> = {
as?: T
hover?: 'underline' | 'none'
href?: ComponentPropsWithoutRef<typeof Link>['href']
href?: string
children?: ReactNode
className?: string
onClick?: () => void
Expand Down
5 changes: 2 additions & 3 deletions site/src/components/common/Card/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import Button from 'components/Button'
import Icon from 'components/Icon'
import React, { ComponentPropsWithoutRef } from 'react'
import React from 'react'

import s from './Card.module.scss'

import cx from 'classnames'
import Link from 'next/link'

type CardProps = {
children?: React.ReactNode
href?: ComponentPropsWithoutRef<typeof Link>['href']
href?: string
onClick?: (e: MouseEvent) => void
className?: string
}
Expand Down
19 changes: 0 additions & 19 deletions site/src/components/common/Icon/icons/Upload.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions site/src/components/common/Icon/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import Cross from './icons/Cross'
import Squares from './icons/Squares'
import DevPortal from './icons/DevPortal'
import { SvgIconComponent } from './SvgIconComponent'
import Upload from './icons/Upload'

export const getIcon = (name: string): SvgIconComponent | null => {
switch (name) {
Expand Down Expand Up @@ -91,9 +90,6 @@ export const getIcon = (name: string): SvgIconComponent | null => {
case 'squares':
return Squares

case 'upload':
return Upload

default:
return null
}
Expand Down
15 changes: 6 additions & 9 deletions site/src/components/common/StickyContainer/StickyContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,14 @@ import s from './StickyContainer.module.scss'
type StickyContainerProps = {
children?: React.ReactNode
className?: string
showWhiteRectangle?: boolean
}

const StickyContainer = forwardRef<HTMLDivElement, StickyContainerProps>(
({ className, children, showWhiteRectangle = true }, ref) => (
<div ref={ref} className={cx(s.root, className)}>
{children}
{showWhiteRectangle && <WhiteRectangle className={s.whiteRectangle} />}
</div>
),
)
const StickyContainer = forwardRef<HTMLDivElement, StickyContainerProps>(({ className, children }, ref) => (
<div ref={ref} className={cx(s.root, className)}>
{children}
<WhiteRectangle className={s.whiteRectangle} />
</div>
))

StickyContainer.displayName = 'StickyContainer'

Expand Down

This file was deleted.

42 changes: 0 additions & 42 deletions site/src/components/pages/OpenJobs/DottedSection/DottedSection.tsx

This file was deleted.

35 changes: 0 additions & 35 deletions site/src/components/pages/OpenJobs/Filter/Filter.module.scss

This file was deleted.

Loading

0 comments on commit 093eefe

Please sign in to comment.