75 |
76 |
77 |
78 | Preview: @{handleValue || "customHandle"}.{domainName}
79 |
80 | {domainType === "file" ? (
81 |
82 |
Enter your handle:
83 |
84 |
95 | .{domainName}
96 |
97 |
Upload a text file to:
98 |
99 | https://{handleValue || "customHandle"}.{domainName}
100 | /.well-known/atproto-did
101 |
102 | {handleValueValidator && (
103 |
104 | custom handle value is wrong (has to start or end with a letter
105 | or number)
106 |
107 | )}
108 |
Value:
109 |
110 |
121 |
122 | {domainValueValidator && (
123 |
124 | make sure you copied the value correctly
125 |
126 | )}
127 |
128 | ) : (
129 |
130 |
Domain:
131 |
132 | _atproto.
133 |
144 | .{domainName}
145 |
146 | {handleValueValidator && (
147 |
148 | custom handle value is wrong (has to start or end with a letter
149 | or number)
150 |
151 | )}
152 |
Type:
153 |
TXT
154 |
Value:
155 |
156 |
167 |
168 | {domainValueValidator && (
169 |
170 | make sure you copied the value correctly
171 |
172 | )}
173 |
174 | )}
175 |
176 |
200 | {recordMutation.error && (
201 |
202 | {recordMutation.error.message}
203 |
204 | )}
205 | {recordMutation.isSuccess && (
206 |
207 | {`Record added succesfully! Click "Verify" button in Bluesky`}
208 |
209 | )}
210 |
211 |
212 | >
213 | );
214 | }
215 |
--------------------------------------------------------------------------------
/src/pages/components/Select.tsx:
--------------------------------------------------------------------------------
1 | import { Dispatch, SetStateAction, useState } from "react";
2 | import { domains } from "~/utils/domains";
3 |
4 | interface IProps {
5 | value: string;
6 | onChange: Dispatch