generated from theodorusclarence/ts-nextjs-tailwind-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add mui and create simple SalaryHappinessTool
- Loading branch information
1 parent
0b5d383
commit 69e5352
Showing
5 changed files
with
329 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Box, Slider } from '@mui/material'; | ||
import * as React from 'react'; | ||
|
||
export default function SalaryHappinessTool() { | ||
const min = 50; | ||
const max = 150; | ||
const defaultValue = 65; | ||
|
||
return ( | ||
<Box width={300}> | ||
<h3>Salary Happiness Tool</h3> | ||
|
||
<Slider | ||
defaultValue={defaultValue} | ||
min={min} | ||
max={max} | ||
aria-label='Default' | ||
valueLabelDisplay='auto' | ||
/> | ||
</Box> | ||
); | ||
} |
15 changes: 15 additions & 0 deletions
15
src/components/recruiter-info/__stories__/SalaryHappinessTool.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import SalaryHappinessTool from '@/components/recruiter-info/SalaryHappinessTool'; | ||
|
||
const meta: Meta<typeof SalaryHappinessTool> = { | ||
title: 'Components/Recruiter-Info/SalaryHappinessTool', | ||
component: SalaryHappinessTool, | ||
tags: ['autodocs'], | ||
}; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof SalaryHappinessTool>; | ||
|
||
export const Euros: Story = {}; |
Oops, something went wrong.