Skip to content

Commit

Permalink
remove some puuuuurrrrrple
Browse files Browse the repository at this point in the history
  • Loading branch information
sebald committed Nov 6, 2023
1 parent af015ae commit 2976454
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 0 additions & 4 deletions app/(stats)/composition/[id]/_component/pilot-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,11 @@ export const PilotDetails = ({ className, ships, value }: PilotDetailProps) => {
</div>
<div className="flex flex-wrap gap-x-8 gap-y-4">
<Detail
variant="secondary"
className="max-w-[150px]"
label="Percentile"
value={toPercentage(current.percentile)}
/>
<Detail
variant="secondary"
className="max-w-[150px]"
label="Deviation"
value={
Expand All @@ -88,15 +86,13 @@ export const PilotDetails = ({ className, ships, value }: PilotDetailProps) => {
}
/>
<Detail
variant="secondary"
className="max-w-[150px]"
label="Winrate"
value={
current.winrate ? toPercentage(current.winrate) : '-'
}
/>
<Detail
variant="secondary"
className="max-w-[150px]"
label="Frequency"
value={toPercentage(current.frequency)}
Expand Down
10 changes: 5 additions & 5 deletions ui/detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const styles = {
},
variant: {
default: '',
secondary: '',
primary: '',
},
size: {
default: '',
Expand All @@ -27,8 +27,8 @@ const styles = {
label: cva('text-sm font-medium leading-none', {
variants: {
variant: {
default: 'text-primary-500',
secondary: 'text-secondary-400',
default: 'text-secondary-400',
primary: 'text-primary-500',
},
size: {
default: '',
Expand All @@ -43,8 +43,8 @@ const styles = {
value: cva('', {
variants: {
variant: {
default: 'text-secondary-700',
secondary: 'text-secondary-950',
default: 'text-secondary-950',
primary: 'text-secondary-700',
},
size: {
default: 'text-lg font-medium',
Expand Down

0 comments on commit 2976454

Please sign in to comment.