mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-13 08:38:43 +03:00
Merge pull request #4798 from urbit/mp/landscape/action-bg
landscape: pass background colors to actions
This commit is contained in:
commit
1a01e58b7b
@ -92,6 +92,7 @@ export default function NotificationsScreen(props: any): ReactElement {
|
|||||||
<StatelessAsyncAction
|
<StatelessAsyncAction
|
||||||
overflow="hidden"
|
overflow="hidden"
|
||||||
color="black"
|
color="black"
|
||||||
|
backgroundColor="white"
|
||||||
onClick={onReadAll}
|
onClick={onReadAll}
|
||||||
>
|
>
|
||||||
Mark All Read
|
Mark All Read
|
||||||
@ -106,7 +107,7 @@ export default function NotificationsScreen(props: any): ReactElement {
|
|||||||
{!view && <Inbox
|
{!view && <Inbox
|
||||||
pendingJoin={pendingJoin}
|
pendingJoin={pendingJoin}
|
||||||
{...props}
|
{...props}
|
||||||
filter={filter.groups}
|
filter={filter.groups}
|
||||||
/>}
|
/>}
|
||||||
</Col>
|
</Col>
|
||||||
</Body>
|
</Body>
|
||||||
|
@ -73,14 +73,14 @@ export function Note(props: NoteProps & RouteComponentProps) {
|
|||||||
if (window.ship === note?.post?.author) {
|
if (window.ship === note?.post?.author) {
|
||||||
adminLinks.push(
|
adminLinks.push(
|
||||||
<Link to={`${baseUrl}/edit`}>
|
<Link to={`${baseUrl}/edit`}>
|
||||||
<Action>Update</Action>
|
<Action backgroundColor="white">Update</Action>
|
||||||
</Link>
|
</Link>
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
if (window.ship === note?.post?.author || ourRole === "admin") {
|
if (window.ship === note?.post?.author || ourRole === "admin") {
|
||||||
adminLinks.push(
|
adminLinks.push(
|
||||||
<Action destructive onClick={deletePost}>
|
<Action backgroundColor="white" destructive onClick={deletePost}>
|
||||||
Delete
|
Delete
|
||||||
</Action>
|
</Action>
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user