-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ✨ Show blob divert event * 🧹 Cleanup label related changes * 🐛 Add useEffect dep to re-render the action list
- Loading branch information
Showing
11 changed files
with
120 additions
and
188 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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react' | ||
|
||
export type Variation = 'default' | 'error' | ||
|
||
export const Card = ({ | ||
children, | ||
variation = 'default', | ||
}: { | ||
children: React.ReactNode | ||
variation?: Variation | ||
}) => { | ||
let className = 'shadow rounded-sm p-2' | ||
if (variation === 'error') { | ||
className += ' bg-red-100 dark:bg-red-600 border-red-400 text-red-700 dark:text-red-100' | ||
} else { | ||
className += ' dark:shadow-slate-700 bg-white dark:bg-slate-800' | ||
} | ||
return <div className={className}>{children}</div> | ||
} |
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 was deleted.
Oops, something went wrong.
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,3 +1,2 @@ | ||
export * from './Input' | ||
export * from './List' | ||
export * from './util' |
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
Oops, something went wrong.