-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from KERT-core/refactor/prettier-write
- Loading branch information
Showing
38 changed files
with
2,457 additions
and
2,114 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"singleQuote": true, | ||
"semi": false, | ||
"semi": true, | ||
"tabWidth": 2, | ||
"trailingComma": "all" | ||
} |
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
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
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import { useEffect } from "react"; | ||
import { useEffect } from 'react'; | ||
|
||
import useDashboard from "../../../stores/dashboard"; | ||
import useDashboard from '../../../stores/dashboard'; | ||
|
||
export default function DashboardAdmin() { | ||
const { moveAdmin } = useDashboard(); | ||
const { moveAdmin } = useDashboard(); | ||
|
||
useEffect(() => { | ||
moveAdmin(); | ||
}, []); | ||
useEffect(() => { | ||
moveAdmin(); | ||
}, []); | ||
|
||
const ScrollTestPTag = Array.from({ length: 200 }, (_, i) => i + 1); | ||
const ScrollTestPTag = Array.from({ length: 200 }, (_, i) => i + 1); | ||
|
||
return ( | ||
<> | ||
{ScrollTestPTag.map(number => ( | ||
<p key={number}>ADMIN {number}</p> | ||
))} | ||
</> | ||
) | ||
} | ||
return ( | ||
<> | ||
{ScrollTestPTag.map((number) => ( | ||
<p key={number}>ADMIN {number}</p> | ||
))} | ||
</> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,75 +1,73 @@ | ||
import styled from "styled-components"; | ||
import styled from 'styled-components'; | ||
|
||
export const RowFlex = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
gap: ${(props) => props.$gap}; | ||
` | ||
display: flex; | ||
flex-direction: row; | ||
gap: ${(props) => props.$gap}; | ||
`; | ||
|
||
export const ColumnFlex = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
gap: ${(props) => props.$gap}; | ||
` | ||
display: flex; | ||
flex-direction: column; | ||
gap: ${(props) => props.$gap}; | ||
`; | ||
|
||
export const Container = styled.div` | ||
width: ${(props) => { | ||
if (props.$width) { | ||
return props.$width; | ||
} | ||
else { | ||
return "fit-content;"; | ||
} | ||
}}; | ||
width: ${(props) => { | ||
if (props.$width) { | ||
return props.$width; | ||
} else { | ||
return 'fit-content;'; | ||
} | ||
}}; | ||
height: ${(props) => { | ||
if (props.$height) { | ||
return props.$height; | ||
} | ||
else { | ||
return "fit-content"; | ||
} | ||
}}; | ||
height: ${(props) => { | ||
if (props.$height) { | ||
return props.$height; | ||
} else { | ||
return 'fit-content'; | ||
} | ||
}}; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 30px; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 30px; | ||
padding: 30px; | ||
box-sizing: border-box; | ||
border-radius: 20px; | ||
padding: 30px; | ||
box-sizing: border-box; | ||
border-radius: 20px; | ||
border: 1px solid #21272E; | ||
` | ||
border: 1px solid #21272e; | ||
`; | ||
export const SectionTitle = styled.h2` | ||
margin: 0px 0px 20px 10px; | ||
font-size: ${(props) => props.$size ?? "25px"}; | ||
font-weight: 800; | ||
` | ||
margin: 0px 0px 20px 10px; | ||
font-size: ${(props) => props.$size ?? '25px'}; | ||
font-weight: 800; | ||
`; | ||
|
||
export const Title = styled.h3` | ||
margin: 0; | ||
font-size: ${(props) => props.$size ?? "18px"}; | ||
font-weight: ${(props) => props.$weight ?? "normal"}; | ||
color: ${(props) => props.$color ?? "#ffffff"}; | ||
` | ||
margin: 0; | ||
font-size: ${(props) => props.$size ?? '18px'}; | ||
font-weight: ${(props) => props.$weight ?? 'normal'}; | ||
color: ${(props) => props.$color ?? '#ffffff'}; | ||
`; | ||
|
||
export const Button = styled.button` | ||
transition: background-color 0.2s ease-in-out; | ||
transition: background-color 0.2s ease-in-out; | ||
&:hover { | ||
background-color: #ffffff1f | ||
} | ||
&:hover { | ||
background-color: #ffffff1f; | ||
} | ||
outline: none; | ||
border: none; | ||
width: ${(props) => props.$width ?? 'fit-content'}; | ||
padding: 12px 20px; | ||
outline: none; | ||
border: none; | ||
background-color: #ffffff10; | ||
font-size: 14px; | ||
font-weight: lighter; | ||
width: ${(props) => props.$width ?? "fit-content"}; | ||
padding: 12px 20px; | ||
background-color: #ffffff10; | ||
font-size: 14px; | ||
font-weight: lighter; | ||
border-radius: 100px; | ||
` | ||
border-radius: 100px; | ||
`; |
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import { useEffect } from "react"; | ||
import { useEffect } from 'react'; | ||
|
||
import useDashboard from "../../../stores/dashboard"; | ||
import useDashboard from '../../../stores/dashboard'; | ||
|
||
export default function DashboardExecutive() { | ||
const { moveExecutive } = useDashboard(); | ||
const { moveExecutive } = useDashboard(); | ||
|
||
useEffect(() => { | ||
moveExecutive(); | ||
}, []); | ||
useEffect(() => { | ||
moveExecutive(); | ||
}, []); | ||
|
||
const ScrollTestPTag = Array.from({ length: 200 }, (_, i) => i + 1); | ||
const ScrollTestPTag = Array.from({ length: 200 }, (_, i) => i + 1); | ||
|
||
return ( | ||
<> | ||
{ScrollTestPTag.map(number => ( | ||
<p key={number}>EXECUTIVES {number}</p> | ||
))} | ||
</> | ||
) | ||
} | ||
return ( | ||
<> | ||
{ScrollTestPTag.map((number) => ( | ||
<p key={number}>EXECUTIVES {number}</p> | ||
))} | ||
</> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import { useEffect } from "react"; | ||
import { useEffect } from 'react'; | ||
|
||
import useDashboard from "../../../stores/dashboard"; | ||
import useDashboard from '../../../stores/dashboard'; | ||
|
||
export default function DashboardHistory() { | ||
const { moveHistory } = useDashboard(); | ||
const { moveHistory } = useDashboard(); | ||
|
||
useEffect(() => { | ||
moveHistory(); | ||
}, []); | ||
useEffect(() => { | ||
moveHistory(); | ||
}, []); | ||
|
||
const ScrollTestPTag = Array.from({ length: 200 }, (_, i) => i + 1); | ||
const ScrollTestPTag = Array.from({ length: 200 }, (_, i) => i + 1); | ||
|
||
return ( | ||
<> | ||
{ScrollTestPTag.map(number => ( | ||
<p key={number}>HISTORY {number}</p> | ||
))} | ||
</> | ||
) | ||
} | ||
return ( | ||
<> | ||
{ScrollTestPTag.map((number) => ( | ||
<p key={number}>HISTORY {number}</p> | ||
))} | ||
</> | ||
); | ||
} |
Oops, something went wrong.