Comments (1)
Okay I get it.
I added to component from my action and more global think...
import React from 'react';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import { Box, H5, Button, Text } from '@adminjs/design-system';
// import { ActionProps } from 'adminjs';
const RedirectToUrlAction = (props: any) => {
const { record, msg } = props;
// redirect to the URL to 5 seconds
setTimeout(() => {
window.location = record.params.url;
}, 3 * 1000);
return (
<Box>
<H5>{record.params.msg}</H5>
<Box>
<Text textAlign="center">
<Button href={record.params.url}>
Link to Request
</Button>
</Text>
</Box>
</Box>
);
};
export default RedirectToUrlAction;
from adminjs.
Related Issues (20)
- [Bug]: SyntaxError: Named export 'ComponentLoader' not found. The requested module 'adminjs' is a CommonJS module HOT 2
- How to migrate from adminbro to adminjs HOT 2
- [Bug]: Unable to query mongoDB record that contains special characters like "/" in the _id
- [Bug]: Calendar strange rendering
- [Bug]: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of `Edit`. HOT 1
- [Bug]: @adminjs/relations many-to-many with Prisma HOT 2
- [Bug]: Filter UI issue HOT 1
- [Feature]: @adminjs/relations remove "delete record" option HOT 2
- [Bug]: AdminJs/Relations One to Many TypeError: Cannot read properties of null (reading 'type') HOT 5
- [Bug]: AdminJs/relations and Prisma Many to Many with undefined references causes `Argument in: Invalid value provided` HOT 1
- [Feature]: 2FA on login? HOT 2
- [Bug]: inputs in Modals lose focus every key press
- [Bug]: Bulk action doesn't trigger a list refresh HOT 1
- [Bug]: I have 2 dropdowns, is there any way to filter out data in 2nd dropdown on the basis of value selected in 1st dropdown in Admin JS library? HOT 10
- [Bug]: edit page does not shows the files I uploaded previously HOT 5
- [Bug]: Image in Rich Text Editor not showing when I try re-editing
- [Bug]: adminjs/cli `unable to resolve dependency tree` project init falied for nestjs with typeorm and postgres HOT 2
- [Bug]: Not able to build after adding admin-bro HOT 1
- [Bug]: Errors during transpile HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adminjs.